Re: Service Crashing
- From: Marc Gravell <marc.gravell@xxxxxxxxx>
- Date: Sun, 9 Dec 2007 23:26:23 -0800 (PST)
...or wrap critical code segments into a try-catch block...
Just to observe that the most pragmatic approach here may actually be
to wrap your main work method[*] in a try/catch, doing some error-
logging in the "catch" (perhaps simply writing the message,
stacktrace, etc to the event-log). I agree that exception handling
(esp. "finally") should be "where necessary" in the code, but this
isn't often a useful debugging tool unless you get lucky.
[*]=since tihs is a service, I'm assuming that you spin up a thread in
the "start"; I mean the method you used for the delegate to start the
thread.
Marc
.
- Follow-Ups:
- Re: Service Crashing
- From: Marc Gravell
- Re: Service Crashing
- References:
- Service Crashing
- From: Cuong Tong
- Re: Service Crashing
- From: Kerem Gümrükcü
- Service Crashing
- Prev by Date: Re: Service Crashing
- Next by Date: Re: Need to dump file on HD in browser: what are my options?
- Previous by thread: Re: Service Crashing
- Next by thread: Re: Service Crashing
- Index(es):
Relevant Pages
|