| | |
Proper way to delay an application while a service is starting?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2006
Posts: 35
Reputation:
Solved Threads: 0
My system has a service (Serv.exe) which starts as LocalSystem and should be running at all time, additionally on startup of the PC (auto logon) the user has a STARTUP application (App.exe) which runs.
Sadly I've found that sometimes App.exe starts to run before Serv.exe has finished starting, and one of the first thing App.exe does is communicate with Serv.exe (which obviously fails).
So, I am looking for the proper way to handle this situation (I assume it isn't that rare)...
I know I can query the service from App.exe for a specific amount of time but that doesn't seem like a clean solution.
One thought I had ... just not sure if it is possible ... can you delay windows from allowing the user to login (or autologin) until the LocalSystem Services are running?
Any help/hints would be greatly appreciated.
Thanks,
Sadly I've found that sometimes App.exe starts to run before Serv.exe has finished starting, and one of the first thing App.exe does is communicate with Serv.exe (which obviously fails).
So, I am looking for the proper way to handle this situation (I assume it isn't that rare)...
I know I can query the service from App.exe for a specific amount of time but that doesn't seem like a clean solution.
One thought I had ... just not sure if it is possible ... can you delay windows from allowing the user to login (or autologin) until the LocalSystem Services are running?
Any help/hints would be greatly appreciated.
Thanks,
![]() |
Similar Threads
- Communication between running application and service [C++] (C++)
- Java Wrapper Service for mac os. (Java)
- proble in java wrapper service Configuration file. (Java)
- starting mongrel with c# app (C#)
- 2 Second Delay - One for the Masters... (Windows NT / 2000 / XP)
- Help my virus problems with logs and evidence (Viruses, Spyware and other Nasties)
- How To Update Changes in File (Visual Basic 4 / 5 / 6)
- SQL Server vs MYSQL vs MSQL (i'm stopping now) (MS SQL)
Other Threads in the C++ Forum
- Previous Thread: Linker error problems
- Next Thread: Issues with functions and pass by reference!
| Thread Tools | Search this Thread |






