Release VS Debug

This is a discussion on Release VS Debug within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I am having a little weird problem and I was wondering if somebody could shed a light on it. ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    Release VS Debug

    Hi,
    I am having a little weird problem and I was wondering if somebody could shed a light on it. I have this piece of code:
    Code:
    UpdateButtons();    
        timer_enabled = true;
        UpdateData(false);
    
        m_nTimer = SetTimer(APP_TIMER_ID_SERIAL_CHECK_RECV, 200, NULL);
        mode = 0;
    
        m_LOPDRect.top = 366;
        m_LOPDRect.bottom = m_LOPDRect.top + 73;
        m_LOPDRect.left = 444;
        m_LOPDRect.right = m_LOPDRect.left + 73;
    
        m_LOPDPos.x = 459;
        m_LOPDPos.y = 431;
    
        LightOutPutValue = 255;
        LcdBrightnessValue = 252;    command.SetLightVane(255-LightOutPutValue);
    It's found in the InitDialog of my program. When I run it in debug mode and I step through the code, it goes through all these lines but if I go to the release version and step through the code, the program skips the lines highlighted above. Can anybody explain why. Thanks
    Amish

  2. #2
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    You can step through code on a release executable?

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    It seems like it in MSVS .NET 2003.

  4. #4
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    Try moving it and see what happens:

    Code:
    UpdateButtons();    
        timer_enabled = true;
        m_nTimer = SetTimer(APP_TIMER_ID_SERIAL_CHECK_RECV, 200, NULL);
        mode = 0;
    
        m_LOPDRect.top = 366;
        m_LOPDRect.bottom = m_LOPDRect.top + 73;
        m_LOPDRect.left = 444;
        m_LOPDRect.right = m_LOPDRect.left + 73;
    
        m_LOPDPos.x = 459;
        m_LOPDPos.y = 431;
    
        LightOutPutValue = 255;
        LcdBrightnessValue = 252;
    
        UpdateData(false);
    
        command.SetLightVane(255-LightOutPutValue);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. debug release conf problem
    By fighter92 in forum Game Programming
    Replies: 6
    Last Post: 03-20-2009, 05:39 PM
  2. makefiles - debug & release?
    By cpjust in forum C Programming
    Replies: 6
    Last Post: 10-26-2007, 05:00 PM
  3. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 12:08 PM
  4. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM
  5. Differences in Debug and Release builds in MSVC
    By TravisS in forum C Programming
    Replies: 5
    Last Post: 06-19-2002, 11:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21