3
votes

When debugging a native win32 application, certain unhandled exceptions (more specifically a failed assertion in Windows atlcomcli.h) causes the "unhandled exception" dialog (where you can abort, continue (to debug the exception in visual studio) or ignore) to freeze and be unresponsive - none of the buttons can be pressed.

This means I cannot get the callstack among other things, I have to force-terminate Visual Studio and so I cant get any help on debugging where it crashes.

It works just fine with most other unhandled exceptions that are thrown.

Why is this?

1
It would be helpful to have some code that could reproduce the issue. - Steve
Have you witnessed this on multiple computers? Particular OS? Visual Studio version? - Steve
Have you tried putting a breakpoint in the Windows code right before it opens the dialog box? - Keith M
Have you tried navigating the assertion dialog using the keyboard? Particularly inside drag-and-drop implementations it's not uncommon for debug assertion dialogs to not receive any mouse input. - IInspectable
Again, others would probably be very willing to try this exact thing, if you could write a very small program that made the proper calls. Short, Self Contained, Correct (Compilable), Example - Steve

1 Answers

0
votes

One workaround is that you could collect the minidump file for the crashed/freeze issue, debug the crashed dump file and find more helpful information for it:

How can I disable the debug assertion dialog on Windows?