> [snip]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.
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.
An application running as a system user without anyone logged on will not be able to create any forms or windows or run like a normal application because there is no desktop for the application to show its forms on. This would be like running a service.
-- Sly
_______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

