复制并粘贴解决方案 [英] Copy and paste solution

查看:140
本文介绍了复制并粘贴解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很好的带有图形的程序副本,您有什么呢?当我尝试将其粘贴到任何位置时,单个图形将无法正常运行,并且程序中的其他所有功能都将正常运行.无需任何路径.我复制并粘贴了整个文件夹.除了这个单一的图(一切非常重要)之外,其他所有东西都有效,我在不同的地方做了很多次.并始终保持相同的结果.原始副本有效,如果我移动它,它将停止.我该怎么办?

i have a good working copy of a program with graphs and what have you. when i am trying to paste it anywhere, one single graph does not work, and everything else in the program works. no paths needed. i copied and pasted the entire folder. everything works except this single graph(which is very important) i did this for a number of times in different places. and all the time the same result. the original copy works and if i move it it stops. what can i do?

推荐答案

最明显的答案是:不要动它".
不是很有帮助,但是根据您所提供的信息,没有答案会那么有用.

您需要弄清楚为什么它不起作用-这意味着要检查情况和源代码,并找出问题所在.可以帮助您的一件事是打开调试器中捕获的所有异常.在调试"菜单上,单击例外".在出现的对话框中,确保每个复选框都有一个打勾,尤其是投掷"列中的打勾.现在运行程序时,即使图形处理代码导致了异常并将其丢弃,您的应用程序也将在该异常处停止,从而使您有机会弄清其发生的原因.
The most obvious answer is: "don''t move it".

Not very helpful, but with the information you have given, no answer is going to be that helpful.

You need to work out why it isn''t working - that means examining the situation and the source code and finding out what kind of problem it is. One thing that may help you is to turn all exceptions catching on in the debugger. On the "Debug" menu, click "Exceptions". In the dialog box that comes up, make sure every single check box has a tick, especially those in the "thrown" column. When you run you program now, even if the graph handling code is causing an exception and discarding it, your application will stop at the exception giving you a chance to work out why it has happened.


没错.这个问题没有提供太多信息.
唯一的问题可能是该图的来源,这正引起问题,因为它可能指向的物理位置在复制到其他位置时会发生变化.

需要找到该位置并将其转换为相对路径,以便即使将其移动到其他位置也可以使用.

希望能有所帮助.

有了荣誉,

Pradeep
That''s right..this question doesn''t provide much info.
The only issue could be the source of this graph which is causing problem as it may be pointing to a physical location which gets changed when it''s copied to a different location.

That location needs to be found and converted into a relative path so that it can work even if you move it to a different location.

Hope its of some help.

With kudos,

Pradeep


这篇关于复制并粘贴解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆