请帮帮忙??(100分)

  • 主题发起人 金圣叹
  • 开始时间

金圣叹

Unregistered / Unconfirmed
GUEST, unregistred user!

我是个新手,改编了一个网络程序:却出现错误,帮助中的原文如下:请帮忙看看出了什么错误:我看个七七八八,但不会修改程序中的错误:程序编译没错误,运行时出现一下错误:

是help中的解释,编译时没错误,运行时出现错误提示。帮助就是那段english。

You have received the following message:
Project xxxx raised exception class yyyyy with message 'zzzzzz'.
Process stopped. Use Step or Run to continue.
This dialog box appears when a program you're debugging raises an exception, and you have set options that instruct the debugger to handle exceptions (see the Language Exceptions and OS Exceptions pages of the Tools|Debugger options dialog). Both language exceptions and operating system exceptions (called signals on Linux) show this dialog. If the 'yyyyy' in the message is a class name, it indicates that the exception is a language exception. If the 'yyyyy' is a hexadecimal value, it means that the exception is an operating system exception.
If the location of the exception do
es not correspond to a source location, a checkbox labeled "View CPU' appears in the lower left corner of the dialog box.
After pressing OK on the dialog box, the IDE shows you the location where the exception occurred. If you checked the View CPU checkbox, the CPU view is displayed. If the location of the exception corresponds directly to a source location, that source location is shown (and the View CPU checkbox do
es not appear on the dialog box).
If the exception location do
es not correspond to source and you do
not check the View CPU checkbox, the IDE traverses the call stack looking for a call in the stack that contains source and will show you the first call found that has source.
What should you do
when you see this dialog?
In most cases, clicking OK and do
ing a Run|Run to continue will work just fine. In some cases, the state of the program will prevent you from running or continuing will not allow them to continue (you will repeatedly see the exception message). In this case, you will need to choose Run|Program Reset to end the current program run and release it from memory.
Type Ctrl+C to copy this or similar messages to the clipboard.
 
程序访问了非法空间。
可能原因是你定义了指针型变量而没有分配控件。
如:
var pchar1:pchar;
没有getmem(pchar1,255)
另外如果释放了已经释放的对象也会出现这个问题。总之出这个错误是Delphi里面经常的。
 
能继续说说吗?
 
编写程序的时候,经常能够遇到这个问题。
比如,你调用了一个Api函数,如果传递的参数不对,那么基本会出这个问题。
再如,你动态生成了一个控件,退出的时候没有释放,也会出这个问题。
还有,如果使用了数据库,用了报表控件QuickReport,那么这个问题就更多了。
出现这个问题的原因很多,反正是使用Delphi的人基本都能够遇到,呵呵。
 
顶部