how long it takes for kernel handles to close by Windows when an application crashes -


I know Windows crashes when an application crashes, but if I want to wait at this event Can I make sure that it will be in milliseconds or it may take some time? I would like to trigger a new function, when one application crashes and I see that this handle is zero, but it seems that I can not get zero value in this case.

How long will it take on the basis of several factors including implementation, accident type, etc. It may take some time.

If you want to know if a process has crashed, then you should establish a "watchdog" thread or process, which uses a function, waits for the application. When the process dies, the event will be a signal and you can act accordingly.


Comments