WebChaot Messages: 53 Registered: September 2006 Location: Austria, Vienna
Member
Hi Mirek!
>>> AFAIK, windows services that expect user input simply add some gui elements (which reduces it to the former solution).
Not really. I want to implement a command line argument "-d" to start the "service" as a stand alone program (for testing and for manual operation). And because its a console application I have no window, but want to break the loop by pressing a key.
Usually the loop runs until the service gets the stop command. For testing mode I have to break the loop otherwise.
Is there no easy solution to do that? If not, I will terminate program in task manager every time, because CTRL-C doesnt work too