Click here to Skip to main content
15,886,799 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.

 
GeneralRe: Waiting for else part execution Pin
Argonia30-Jan-14 3:42
professionalArgonia30-Jan-14 3:42 
GeneralRe: Waiting for else part execution Pin
Super Lloyd30-Jan-14 16:37
Super Lloyd30-Jan-14 16:37 
GeneralRe: Waiting for else part execution Pin
Mohamad M. Mohamad4-Feb-14 22:59
Mohamad M. Mohamad4-Feb-14 22:59 
GeneralRe: Waiting for else part execution Pin
NormDroid10-Feb-14 21:01
professionalNormDroid10-Feb-14 21:01 
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 
There are two ways to crash your application:
- The exception occurred on the main thread (that is the same as where the main function is called)
- Corrupted State Exceptions that you usually just can't handle (e.g. AccessViolationException, StackOverflowException (if thrown by the OS), etc.) and the application just isn't in a state where it could continue (Yeah, I know, you CAN catch an AccessViolationException, but it's generally not encouraged)

I don't see any reason why an entire application should go boom because one single thread messed something up Wink | ;)
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 
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 

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.