Our WinForms application has been reported to occasionally just close on its own. It neither shows our own crash error submit dialog nor Windows’ error submit dialog, it just closes and is gone, often when the person was afk and not doing anything with the application. It seems to be a semi-rare occurrence, maybe like 2-3 times a month, and it’s happened to more than one person. I have no idea where to start with getting a repro case or where to begin tracking this down.
C# .NET 2.0 Reported cases are on Win XP
Anyone have any ideas?
Stack overflows due to infinite recursion are a big cause of apps quitting with no warning. Unless you’ve done something deliberate to cause a silent exit, then unhandled exceptions (other than stack overflow) will normally display some kind of UI before the app quits. Stack overflow is the most common exception (oops, sorry) to this rule.
Of course, from unmanaged or unsafe code it’s almost certainly possible to upset the runtime in the right way to cause a silent exit.
The suggestions about instrumentation and looking at the Windows event log are good too.