How can I debug a win32 process that unexpectedly terminates silently?

前端 未结 11 2071
你的背包
你的背包 2021-02-03 13:29

I have a Windows application written in C++ that occasionally evaporates. I use the word evaporate because there is nothing left behind: no \"we\'re sorry\" message from Window

11条回答
  •  独厮守ぢ
    2021-02-03 13:37

    Possible causes come to mind.

    • TerminateProcess()
    • Stack overflow exception
    • Exception while handling an exception

    The last one in particular results in immediate failure of the application.
    The stack overflow - you may get a notification of this, but unlikely.

    Drop into the debugger, change all exception notifications to "stop always" rather than "stop if not handled" then do what you do to cause the program failure. The debugger will stop if you get an exception and you can decide if this is the exception you are looking for.

提交回复
热议问题