Re: Catch process exception
- From: "Ben Voigt" <rbv@xxxxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 08:15:55 -0600
Thanks, but can I use this method to get ending reason of
app(exception,user ending, etc...).
From the code you provided, I was under the impression you were trying tocapture an error message the app writes to stderr. Is that accurate?
According to the documentation for GetExitCodeProcess, an application that
ends with an unhandled exception should terminate, and the exit code should
be the exception. But maybe the exception isn't unhandled, and the
application catches it and exits normally... in that case your only option
is to check for any error event the application might leave (could be a log
file, Windows Event Log, message on stdout or stderr, etc.)
.
- References:
- Catch process exception
- From: Eran . Yasso
- Re: Catch process exception
- From: Ben Voigt
- Re: Catch process exception
- From: Eran . Yasso
- Re: Catch process exception
- From: Ben Voigt
- Re: Catch process exception
- From: Eran . Yasso
- Catch process exception
- Prev by Date: Re: How can i have multiple base classes.
- Next by Date: How to capture textchanged event for html editor
- Previous by thread: Re: Catch process exception
- Next by thread: Re: Catch process exception
- Index(es):
Relevant Pages
|