Re: NT Service Problem
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 10 Sep 2006 21:43:15 -0400
There is an error in your shutdown code that is causing an exception. This exception
causes the service to terminate, but it represents a bug. You will have to attach your
debugger to the service and then initiate a shutdown to see where it is failing.
What you do, in terms of db connection and threads, isn't terribly informative; all you've
really said is "my program fails, what did I do wrong?". The answer is "Yes, you did
something wrong. The solution is to find it and fix it". Without more information, such
as knowing where the fault occurs, there is no hope of saying anything more. That's what
debuggers are all about.
So the way you make the service stop successfully is to find and fix the bug.
joe
On Sun, 10 Sep 2006 07:13:02 -0700, Susanna <Susanna@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi, :)Joseph M. Newcomer [MVP]
I have an NT Service written in MFC.
There are no problems starting the service, but when I try to stop or pause
the service, I get this error 1064 i.e
"An exception occurred in the service when handling the control request"
The service is stopped but it does not return a success.
I am doing somethings (like connecting to db, starting some new threads
etc), when the service starts or is running.I believe the problem is here.
How can I make the service stop successfully??
Please reply asap.Thanks.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: NT Service Problem
- From: Susanna
- Re: NT Service Problem
- Prev by Date: Re: RICHED20.DLL workaround
- Next by Date: Re: Multiple Views: how to open both views at startup or on new document
- Previous by thread: Re: Out Of Memory Message
- Next by thread: Re: NT Service Problem
- Index(es):
Relevant Pages
|