did you ever see if(false) run the if block anyway?
I'm getting that at the moment.. bugging me for the past few hours. The condition in my IF is evaluating to false, but VS2010 Pro runs the if block anyway. Noone in my team can explain it; this is a new built laptop, windows 7, vs2010 pro and i've just converted the application to 64bit from its 32bit roots. I'm hestiant to even use this dev env any more if it's compiling code that runs when the IF is false, as it this will be used in banking systems..
Here's a short video, I have the cursor already positioned on the problematic if.. All I do is put the condition into the immediate window immediately before I step over. Condition reports FALSE in the immediate window, but when I choose step over from the debugger menu, it enters the IF regardless.. No prank; any trustworthy soul who uses TeamViewer remote desktop software is welcome to connect to my PC and see this happen for themselves, live.
Video attached.. It's a SWF video so it's in a zip file along with an HTML file that will act as a container.. just extract the two to your desktop and open the HTML, your browser will play the SWF.. Youre free to examine the HTML beforehand using notepad if you have any concerns about its potential content
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.