>I've noticed also that when i logged
Quote:
Quote:
> process.StartInfo.RedirectStandardError
> process.StandardError.ToString())
>i got "True" on the first one (as expected) but i
>cause an error on the second one. The error message
>is that the standard error has not been redirected.
>What's up with that?!
>
Hard to say, since you didn't post a complete code example. But, had you
started the process when you tried to get the StandardError stream? If
not, I believe that would explain your failure.
>
As far as capturing errors generated by other processes, there's not any
accepted mechanism in .NET that I know of to do that. You can hack
Windows to do anything you want, of course. But as a general rule, your
process doesn't get to override behavior in other processes, including
suppressing error dialogs/messages.
I'm not so much looking for suppressing/overriding the
error behavior. Rather, i'm looking for a way to catch
them in my application. It seems useful to be able to
intercept the error messages produced by a process
that i've started. Can one EXECUTE that process in
such a way so that it will be "catchable"?
It seems like a thing that one would like to have...
--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.