The problem is. I have made a Win32 service application witch is set to automatic start up. For some reaches, the application unexpectedly terminates. But when I start the application with Service Manager is starts with out errors. But I have thought about this function, witch can tell me how long the system has been up an running. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettickcount.asp Then I will try to make a delay for about 10 seconds. when system up time is less then 10 minutes. /Kim