none
Process crash monitor in .Net RRS feed

  • Question

  • Hi all,

    There are 2 different .Net programs and I need to create some sort of crash monitor from first one to second. In other words, first program should check second one in infinitive loop for crash and initiate mini dump creation for crashed process.

    I already have some implementation using Win32 API methods like:
    WaitForDebugEvent, ContinueDebugEvent (from kernel32.dll) to catch DBG_EXCEPTION_NOT_HANDLED event and MiniDumpWriteDump (dbghelp.dll) to write dump.

    This approach works fine for most of cases, but for some environment monitored (second one) process hangs after 8+ hours of monitoring.

    Is there another approach to implement such monitor? Or might be is there known issue with my approach to know way it causes process to hang?

    Thanks for any advice.

    Thursday, November 30, 2017 10:50 AM

All replies

  • The problem is your goal here. It's not entirely clear what you want.. it sounds like you should use a heart beat monitor. Cause some "crashes" may go without normal exception. Or your monitored program just hangs.

    Thursday, November 30, 2017 11:00 AM