By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,763 Members | 1,439 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,763 IT Pros & Developers. It's quick & easy.

Service sent a stop cmd????

P: n/a

HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.

Feb 1 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Do you rely on timers or anything like this? Are you sure you don't have an
exception that you are not handling?

--
Regards,
Robson Siqueira
Enterprise Architect
"TheMadHatter" <Th**********@discussions.microsoft.comwrote in message
news:D8**********************************@microsof t.com...
>
HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.

Feb 1 '07 #2

P: n/a
Yes, there is one service timer. The ServiceTimer_Elapsed is fully error
handled.

"Robson Siqueira" wrote:
Do you rely on timers or anything like this? Are you sure you don't have an
exception that you are not handling?

--
Regards,
Robson Siqueira
Enterprise Architect
"TheMadHatter" <Th**********@discussions.microsoft.comwrote in message
news:D8**********************************@microsof t.com...

HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.


Feb 1 '07 #3

P: n/a
Never mind....
It was one of my other programs stopping it, upon its start. urg. Thanks
anyhow.

"TheMadHatter" wrote:
>
HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.
Feb 2 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.