I have an application that optionally should start whenever a system boots. However, when I use the Windows Scheduler and create a scheduled task with "At System Startup", I get a error. When scheduled to run "At Logon", everything works properly.
The error conditions are dependent upon the Windows version: In XP Pro, the error is a "Generic Host Process", with the manifest.txt file containing: Server=watson.microsoft.com UI LCID=1033 Flags=1671504 Brand=WINDOWS TitleName=Generic Host Process for Win32 Services DigPidRegPath=HKLM\Software\Microsoft\Windows NT\CurrentVersion\DigitalProductId ErrorText=This error occurred on 4/28/2005 at 8:56:07 AM. HeaderText=Generic Host Process for Win32 Services encountered a problem and needed to close. Stage1URL= Stage1URL=/StageOne/svchost_exe/0_0_0_0/unknown/0_0_0_0/00000000.htm Stage2URL= Stage2URL=/dw/stagetwo.asp?szAppName=svchost.exe&szAppVer=0.0.0.0&szModName= unknown&szModVer=0.0.0.0&offset=00000000 DataFiles=C:\DOCUME~1\TOMHAH~1\LOCALS~1\Temp\WERbcf3.dir00\svchost.exe.mdmp| C:\DOCUME~1\TOMHAH~1\LOCALS~1\Temp\WERbcf3.dir00\appcompat.txt Heap=C:\DOCUME~1\TOMHAH~1\LOCALS~1\Temp\WERbcf3.dir00\svchost.exe.hdmp ErrorSubPath=svchost.exe\0.0.0.0\unknown\0.0.0.0\00000000 DirectoryDelete=C:\DOCUME~1\TOMHAH~1\LOCALS~1\Temp\WERbcf3.dir00 In 2003 Server, a Dr Watson log is created, containing the following extracts: Exception number: c00000fd (stack overflow) *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\kernel32.dll - *** ERROR: Module load completed but symbols could not be loaded for C:\Program Files\HahnTech\CopyCat\CopyCat.exe *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\ntdll.dll - As far as I can tell, the failure is occurring during the MainForm OnCreate event. This event initializes the mainform, checks against information in the registry and an ini file, and starts a logging activity. Any suggestions about why the failure occurs and how to fix it would be very much appreciated. Obviously, the application is doing something illegal at "system startup", but legal at other times. Regards, Tom ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thomas Hahn Hahn Technology, Inc. <Mailto:[EMAIL PROTECTED]> Mailto:[EMAIL PROTECTED] <http://www.hahntech.com> http://www.hahntech.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

