Delphi 应用程序 在windows7 或者SP3下运行出错。解决方案。

The online help that comes with Delphi lists "control-C-exit" as the reason for a runtime error 217, here a 

 

listing of Delphi 3 Runtime Errors:

 

 

 STATUS_FLOAT_DIVIDE_BY_ZERO:    200;

 STATUS_INTEGER_DIVIDE_BY_ZERO:  200;

 STATUS_ARRAY_BOUNDS_EXCEEDED:   201;

 STATUS_STACK_OVERFLOW:          202;

 STATUS_FLOAT_OVERFLOW:          205;

 STATUS_FLOAT_UNDERFLOW,

 STATUS_FLOAT_DENORMAL_OPERAND:  206;

 STATUS_FLOAT_INEXACT_RESULT,

 STATUS_FLOAT_INVALID_OPERATION,

 STATUS_FLOAT_STACK_CHECK:       207;

 STATUS_INTEGER_OVERFLOW:        215;

 STATUS_ACCESS_VIOLATION:        216;

 STATUS_CONTROL_C_EXIT:          217;

 STATUS_PRIVILEGED_INSTRUCTION:  218;

 

In the case of 217, this listing is wrong.

 

In fact, Delphi executables will die with runtime error 217 when an exception was raised before SysUtils is 

 

initialized or after it is finalized. In both situations the regular exception handling is not put in 

 

place.

 

If the error occurs right at your application's startup, check your initialization sections. Try to move 

 

code into a later part, e.g. into FormCreate() events.

Otherwise check your units' finalization sections.

 

Some typical situations where this can happen:

 

    * unexpected date formats

    * disk or registry accesses where the user has not sufficient privileges

    * BDE Net Dir mismatches 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值