I have a batch file that runs multiple instances of a simple console application (Hello World!). I work on a 64-bit Windows Server 2008 server. I configure it to run in TaskScheduler at startup and whether the user is logged in or not. A later configuration means that the instances will work without a GUI (that is, without a window).
When I run this task, some instances just fail after consuming 100 & CPU. The following error is displayed in the application event log: "Faulting module KERNEL32.dll, version 6.0.6002.18005, timestamp 0x49e0421d, exception code 0xc0000142, error offset 0x00000000000b8fb8, process identifier 0x29bc, application start time 0x01cae17d94a61895."
Running a batch file directly works just fine. It seems to me that the OS has the problem of loading too many instances of the application when the window does not appear. However - I can’t understand why ...
Any idea?
source
share