Type: Posts; User: mattl
Search took 0.01 seconds.
December 5th, 2006, 04:20 PM
OK, windows services run off in the background of a system. They are executables that are started by the service control manager.
They can be created by using the 'sc.exe' program.
December 5th, 2006, 01:55 PM
in debug mode?
Are you able to run this as a service in debug mode?
That is news to me. How did you accomplish this?
My understanding was debug and services dont mix...
Let me know...
December 5th, 2006, 10:51 AM
OK, I added the prototyping and made the changes to the ServiceMain header and it still crashes, with the log file still indicating it is getting to the end.
Worth a try though...
Let me know...
December 5th, 2006, 10:14 AM
Sorry, I didnt answer your question.
I didnt mean the sleep of the 1 second between checks for the stop request.
It seems the service will crash more frequently if it is started and stopped...
December 5th, 2006, 10:10 AM
Out of curiosity, I put this service onto a Windows 2K system and I cannot get it to crash there either. This crash is going to haunt me...
December 5th, 2006, 09:36 AM
OK, that's strange.
I am using VC++ version 6.0
And yes, I compiled it with just the 3 pieces attached and tried it and it crashed on the first stop. It doenst always crash on the first stop,...
December 5th, 2006, 08:51 AM
OK, here is a more stand-alone version. It should compile with just these pieces.
The service will start ok and may stop ok the first couple of times. But, start and stop, then start and stop...
December 4th, 2006, 04:07 PM
I am attempting to put logic into an existing service that will allow it to shutdown gracefully. As soon as I add the piece of code to recognize the service has been requested to shutdown the...
March 30th, 2004, 03:13 PM
I am writing a Service in 'C' which has lots of database activity. When the user requests to STOP the Service (within the Service Control Manager) the program simply halts. It does not matter what it...
March 26th, 2004, 12:50 PM
I am writing a Service in 'C' which has lots of database activity. When the user requests to STOP the Service (within the Service Control Manager) the program simply halts. It does not matter what...
March 17th, 2004, 11:00 AM
OK, now I see.
I'll try it and see how it goes...
Thanks very much!
March 17th, 2004, 10:52 AM
Hi there, the
returns a handle to a module (HMODULE). I need to somehow get or create an instance for a window...
March 17th, 2004, 10:45 AM
I am writing a Windows Service and need to dummy a window to call my application. My Windows Service program has (and must have) a main() function instead of a WinMain function. The program that I...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.