kernelbase故障模块,0x0eedfade d7 windows服务中的kernelbase.dll故障模块

I have written a windows service in D7. It worked perfectly ok until today when it

doesn't want to be launch.

In event log I get the error:

Faulting application name: XServ12.exe, version: 0.0.0.0, time stamp: 0x2a425e19

Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf

Exception code: 0x0eedfade

Fault offset: 0x0000b727

Faulting process id: 0xbb4

Faulting application start time: 0x01cca43b2aee203a

I read somewhere that it maybe the problem with initialization sections of the units.

Well, I have removed almost all units form the project and left with: Sysutils, CLasses, Dialogs. When Dialogs.pas unit exists I have still the error when I remove it, the program successfully goes to begin end of the project dpr section.

Furthermore, even if I have all these 3 units and Just manually run exe it launches perfectly ok. Only an error occur when I try to run service from the System Services...

If I reboot the computer, everything is ok. ...

Any ideas?

解决方案

0x0eedfade could be an unhandled Delphi exception propagated outside of a Delphi process.

If the problem only exists when linking in the Dialogs unit it's possible that its initialization, or initialization of any unit it depends on, raises an exception which is not handled and escapes out of your Delphi process.

It could be related to the fact that a service runs in an isolated session (as described in this document) and doesn't have access to the Windows UI subsystem (station, desktop, windows) anymore. In other words, forget interactive services.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值