Click here to Skip to main content
15,883,921 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
PIEBALDconsult29-Jan-14 4:26
mvePIEBALDconsult29-Jan-14 4:26 
JokeRe: Waiting for else part execution Pin
ZurdoDev30-Jan-14 1:52
professionalZurdoDev30-Jan-14 1:52 
GeneralRe: Waiting for else part execution Pin
bluesathish30-Jan-14 2:44
bluesathish30-Jan-14 2:44 
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 
I knew that exceptions in the Load or Shown event of a Form get swallowed on 64bit systems (see e.g. https://connect.microsoft.com/VisualStudio/feedback/details/357311[^]). But this was not such an event.
The autosave procedure of our application receives its start signal from a System.Timers.Timer. The log file entries showed that the Timer_Elapsed handler was called. But strangely, not all of it... But nowhere an exception could be found in the log files, autosave simply did not work.
A newer version of a ThirdParty control fails at a property get when not run in the UI thread - that's where the execution of the Elapsed handler suddenly stopped.
But actually that's nothing new at all, you can read in the MSDN[^]
Quote:
In the .NET Framework version 2.0 and earlier, the Timer component catches and suppresses all exceptions thrown by event handlers for the Elapsed event. This behavior is subject to change in future releases of the .NET Framework.
Still true with .Net 4. Now I know that too.
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 
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 

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.