This problem occurs on Windows Server 2008 x64 and Windows 7 x64. I am running a batch file (.cmd) that starts 60 copies of an application that was written in Delphi 2010. If I logon to windows and run this batch file it works perfectly. If I run the batch file as a scheduled task, only 50 instances of the program get started. The windows system log has 10 entries that read:
Application popup: Hcptransmit: HCPTransmit.exe - Application Error: The exception unknown software exception (0x0eedfade) occurred in the application at location 0x7683b727.
The scheduled task is setup to run with highest privileges and Run whether user is logged on or not.