Error module 0x0eedfade kernelbase.dll in d7 windows service

I wrote a Windows service in D7. It worked perfectly until today, when it does not want to start.

In the event log, I get an error:

Invalid application name: XServ12.exe, version: 0.0.0.0, time stamp: 0x2a425e19 Module name failed: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf Exception code: 0x0eedfade Error offset: 0x0000b727 Failure process identifier: 0xbb4 Time startup failure: 0x01cca43b2aee203a

I read somewhere that this might be a problem with block initialization sections. Well, I removed almost all the units from the project and left with: Sysutils, Classes, Dialogs. When the Dialogs.pas module exists, I still have an error, when I delete it, the program successfully jumps to the beginning of the dpr project section.

In addition, even if I have all these 3 units, and just manually run exe, it starts fine. When I try to start a service from system services, only an error occurs ...

If I restart my computer, everything will be fine ....

Any ideas?

+6
source share
1 answer

0x0eedfade may be an unhandled Delphi exception that is thrown outside the Delphi process. If the problem occurs only when binding in the Dialogs block, it is possible that its initialization or initialization of any element on which it depends causes an exception that is not processed and exits the Delphi process.

This may be due to the fact that the service runs in an isolated session (as described in this document ) and does not have access to the Windows user interface subsystem (station, desktop, windows). In other words, forget the interactive services .

+8
source

Source: https://habr.com/ru/post/901601/


All Articles