本文介绍了0x0eedfade d7 windows服务中的kernelbase.dll故障模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在D7写了一个Windows服务。它的工作完全正常,直到今天,当
不想被启动。



在事件日志中我收到错误:



错误的应用程序名称:XServ12.exe,版本:0.0。 0.0,时间戳:0x2a425e19
错误的模块名称:KERNELBASE.dll,版本:6.1.7600.16385,时间戳:0x4a5bdbdf
异常代码:0x0eedfade
故障偏移量:0x0000b727
故障进程id:0xbb4
应用程序启动时间错误:0x01cca43b2aee203a



我读到某处可能是单元的初始化部分的问题。
嗯,我已经删除了项目中几乎所有的单位,并留下了:Sysutils,CLASSES,Dialogs。当Dialogs.pas单元存在时,我删除它时仍然有错误,程序成功地开始到项目dpr部分的末尾。



此外,即使我有所有这三个单位,只需手动运行exe它启动完全可以。当我尝试从系统服务运行服务时,只会发生错误。



如果我重新启动计算机,一切都可以。 ...



任何想法?

解决方案

0x0eedfade 可能是的传播在Delphi进程之外。
如果在对话框单元中链接时只存在问题,则可能其初始化或依赖于任何单元的初始化引发了未被处理的异常,并从您的Delphi进程中转出。



它可能与一个服务在一个隔离的会话中运行的事实有关(如),并且无法访问Windows UI子系统(站,桌面,Windows)。换句话说,忘记。


I have written a windows service in D7. It worked perfectly ok until today when itdoesn't want to be launch.

In event log I get the error:

Faulting application name: XServ12.exe, version: 0.0.0.0, time stamp: 0x2a425e19Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdfException code: 0x0eedfadeFault offset: 0x0000b727Faulting process id: 0xbb4Faulting 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.

这篇关于0x0eedfade d7 windows服务中的kernelbase.dll故障模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 22:47