How to track if a given process throws an exception using a Windows service in C #

My process sometimes throws an exception, like dllnotfound after starting. I have a monitoring service responsible for maintaining a consistent state of the process.

how can I track the status of my process using the windows service.

Is there an open source Windows service implementation that supports / tracks the status of a process on Windows.

+5
source share
6 answers

: , , , , , , . , .net JIT, http://weblogs.asp.net/fmarguerie/archive/2004/08/27/how-to-turn-off-disable-the-net-jit-debugging-dialog.aspx


, .NET- .

System.Diagnostics.Process, Process , . GetProcessByName, . #, .

WaitForExit - Process. HasExited Exited. , ExitCode, , .

+2

, , , . . , , . 0xe0434f4e, . , , , . , .

, - , . , .

+2

, , .

Windows, `System.ServiceProcess.ServiceController '.

+1

DllNotFoundException , , , . , . .

0

, , - . , , . , 0, . , , , . , , . , VB script, .

-1

All Articles