Click here to Skip to main content
15,887,477 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralWindows swallows exceptions Pin
Bernhard Hiller29-Jan-14 2:53
Bernhard Hiller29-Jan-14 2:53 
GeneralRe: Windows swallows exceptions Pin
Nicholas Marty29-Jan-14 3:04
professionalNicholas Marty29-Jan-14 3:04 
GeneralRe: Windows swallows exceptions Pin
Sentenryu29-Jan-14 3:19
Sentenryu29-Jan-14 3:19 
GeneralRe: Windows swallows exceptions Pin
Nicholas Marty29-Jan-14 3:36
professionalNicholas Marty29-Jan-14 3:36 
GeneralRe: Windows swallows exceptions Pin
PIEBALDconsult29-Jan-14 4:20
mvePIEBALDconsult29-Jan-14 4:20 
GeneralRe: Windows swallows exceptions Pin
Sentenryu29-Jan-14 4:22
Sentenryu29-Jan-14 4:22 
GeneralRe: Windows swallows exceptions Pin
PIEBALDconsult29-Jan-14 4:46
mvePIEBALDconsult29-Jan-14 4:46 
GeneralRe: Windows swallows exceptions Pin
Sentenryu29-Jan-14 6:17
Sentenryu29-Jan-14 6:17 
I was just giving my 2 cents on why that design decision might have been made, without getting into the merit of saying if it's the right way™ or not.

I do defend the crash on this situation, as there's no way to know if the thread ended on a valid state or not.

I interpreted Nicholas Marty's answer as saying that those are the only ways an application might terminate due to an unhandled exception, and felt the necessity to point out that an unhandled exception on any thread would terminate the application, and not just on the main thread, as was implied.

It's also worth noting that if the unhandled exception is on another app domain, you can just handle the AppDomain.CurrentDomain.UnhandledException trashing the offending app domain, then continuing to run normally.
GeneralRe: Windows swallows exceptions Pin
johannesnestler6-Feb-14 22:45
johannesnestler6-Feb-14 22:45 
GeneralRe: Windows swallows exceptions Pin
Sentenryu7-Feb-14 0:03
Sentenryu7-Feb-14 0:03 
GeneralRe: Windows swallows exceptions Pin
johannesnestler7-Feb-14 0:22
johannesnestler7-Feb-14 0:22 
GeneralRe: Windows swallows exceptions Pin
PIEBALDconsult29-Jan-14 4:21
mvePIEBALDconsult29-Jan-14 4:21 
GeneralRe: Windows swallows exceptions Pin
Sentenryu29-Jan-14 4:23
Sentenryu29-Jan-14 4:23 
GeneralRe: Windows swallows exceptions Pin
PIEBALDconsult29-Jan-14 4:27
mvePIEBALDconsult29-Jan-14 4:27 
GeneralVisual Studio 2013 License Pin
DaveAuld29-Jan-14 1:18
professionalDaveAuld29-Jan-14 1:18 
JokeRe: Visual Studio 2013 License Pin
Vladimir Svyatski29-Jan-14 1:26
professionalVladimir Svyatski29-Jan-14 1:26 
GeneralRe: Visual Studio 2013 License Pin
Kornfeld Eliyahu Peter29-Jan-14 1:50
professionalKornfeld Eliyahu Peter29-Jan-14 1:50 
GeneralRe: Visual Studio 2013 License Pin
DaveAuld29-Jan-14 1:56
professionalDaveAuld29-Jan-14 1:56 
JokeRe: Visual Studio 2013 License Pin
Kornfeld Eliyahu Peter29-Jan-14 2:00
professionalKornfeld Eliyahu Peter29-Jan-14 2:00 
GeneralWhat are the chances of that!!!! Pin
Keith Barrow29-Jan-14 2:25
professionalKeith Barrow29-Jan-14 2:25 
GeneralRe: What are the chances of that!!!! Pin
Shameel29-Jan-14 2:48
professionalShameel29-Jan-14 2:48 
GeneralRe: What are the chances of that!!!! Pin
Keith Barrow29-Jan-14 2:57
professionalKeith Barrow29-Jan-14 2:57 
GeneralRe: What are the chances of that!!!! Pin
Shameel29-Jan-14 3:41
professionalShameel29-Jan-14 3:41 
GeneralRe: Visual Studio 2013 License Pin
Shameel29-Jan-14 2:47
professionalShameel29-Jan-14 2:47 
GeneralRe: Visual Studio 2013 License Pin
patbob21-Feb-14 5:13
patbob21-Feb-14 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.