Click here to Skip to main content
15,912,493 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: I just saw this beauty today... Pin
Jim Crafton2-Apr-09 10:01
Jim Crafton2-Apr-09 10:01 
GeneralRe: I just saw this beauty today... Pin
N a v a n e e t h23-Mar-09 15:56
N a v a n e e t h23-Mar-09 15:56 
GeneralRe: I just saw this beauty today... Pin
TheScientistIsDead30-Apr-09 4:34
TheScientistIsDead30-Apr-09 4:34 
GeneralRe: I just saw this beauty today... Pin
N a v a n e e t h3-May-09 17:10
N a v a n e e t h3-May-09 17:10 
GeneralHow to increment a variable [modified] Pin
Kurdy Malloy19-Mar-09 4:42
Kurdy Malloy19-Mar-09 4:42 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 5:20
sitebuilderLuc Pattyn19-Mar-09 5:20 
GeneralRe: How to increment a variable Pin
harold aptroot19-Mar-09 5:38
harold aptroot19-Mar-09 5:38 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 5:42
sitebuilderLuc Pattyn19-Mar-09 5:42 
Make sure the project is set to build for release (actually check the optimize switch is on).
the MS compilers are somewhat lazy when there is the slightest doubt you are going to debug...

Furthermore they always have the ultimate excuse: the JIT compiler will take care of it!

[ADDED]I somehow replied to another version of your message;
also it gets interesting when i happens to be volatile...
[/ADDED]

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: How to increment a variable Pin
harold aptroot19-Mar-09 5:56
harold aptroot19-Mar-09 5:56 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 6:26
sitebuilderLuc Pattyn19-Mar-09 6:26 
GeneralRe: How to increment a variable Pin
DanB198326-Mar-09 3:15
DanB198326-Mar-09 3:15 
GeneralRe: How to increment a variable Pin
OriginalGriff14-Apr-09 6:13
mveOriginalGriff14-Apr-09 6:13 
GeneralRe: How to increment a variable Pin
Robert Surtees19-Mar-09 7:30
Robert Surtees19-Mar-09 7:30 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 7:39
sitebuilderLuc Pattyn19-Mar-09 7:39 
GeneralRe: How to increment a variable Pin
Robert Surtees19-Mar-09 7:49
Robert Surtees19-Mar-09 7:49 
GeneralRe: How to increment a variable Pin
Tom Delany9-Apr-09 12:12
Tom Delany9-Apr-09 12:12 
GeneralRe: How to increment a variable Pin
Robert Surtees9-Apr-09 19:56
Robert Surtees9-Apr-09 19:56 
GeneralRe: How to increment a variable Pin
CurtD19-Mar-09 12:59
CurtD19-Mar-09 12:59 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 13:11
sitebuilderLuc Pattyn19-Mar-09 13:11 
GeneralRe: How to increment a variable Pin
supercat919-Mar-09 18:40
supercat919-Mar-09 18:40 
GeneralRe: How to increment a variable Pin
CurtD20-Mar-09 11:50
CurtD20-Mar-09 11:50 
GeneralRe: How to increment a variable Pin
supercat923-Mar-09 5:53
supercat923-Mar-09 5:53 
GeneralRe: How to increment a variable Pin
CurtD23-Mar-09 6:38
CurtD23-Mar-09 6:38 
GeneralRe: How to increment a variable Pin
supercat923-Mar-09 7:22
supercat923-Mar-09 7:22 
GeneralRe: How to increment a variable Pin
CurtD23-Mar-09 8:41
CurtD23-Mar-09 8:41 

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.