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?
source share