CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    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

    Thanks!
    Attached Files Attached Files
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured