Closed TheCodeArtist closed 8 years ago
If the active window/process closes just as it is being queried using getprocessname(), the following runtime exception is triggered:
Process has exited, so the requested information is not available"
left unhandled, the system (.net runtime?) displays the continue/stop dialog box with the details of the above exception.
Handle this exception properly in code (in tmrPoll tick) instead of allowing the system to show the continue/stop dialog box.
If the active window/process closes just as it is being queried using getprocessname(), the following runtime exception is triggered:
Process has exited, so the requested information is not available"
left unhandled, the system (.net runtime?) displays the continue/stop dialog box with the details of the above exception.
Handle this exception properly in code (in tmrPoll tick) instead of allowing the system to show the continue/stop dialog box.