Thread: Release vs. Debug mode builds

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257

    Release vs. Debug mode builds

    Hi,

    I ran into a very peculiar problem with my project. If I build it in debug mode and run the .exe from the debug folder I get the following output with this line:
    [code]
    fprintf(out, "%d %s %s %s%c", DD.vectWords[i].Bits[j].Bit,
    DD.vectWords[i].Bits[j].WarMsg,
    DD.vectWords[i].Bits[j].Destination,
    DD.vectWords[i].Bits[j].Type, c);
    Code:
    
    
    output:
    11 "take off" CAS WARNING

    Which is what it's supposed to be. If I build in Release and run the .exe fro mthe Release file the same line of code produces this:
    Code:
    125634
    34
    .
    3545
    Or some other gibrish. I couldn't find any info about the modes and I don't know this well enough.
    Does anyone else know and could tell me how to fix this and what/why's happening, please?

    Thanks

    Edit: I forgot to mention that I run Windows NT and MS Visual C++ 6.0
    Last edited by earth_angel; 11-10-2005 at 03:05 PM.
    Everything is relative...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM
  2. release vs debug mode
    By bithub in forum Tech Board
    Replies: 2
    Last Post: 05-10-2006, 03:31 PM
  3. Debug Mode Vs. Release Mode
    By incognito in forum Tech Board
    Replies: 5
    Last Post: 12-18-2003, 04:06 PM
  4. 2min in debug mode, 3sec in release!
    By glUser3f in forum C++ Programming
    Replies: 9
    Last Post: 10-03-2003, 01:00 PM
  5. Differences in Debug and Release builds in MSVC
    By TravisS in forum C Programming
    Replies: 5
    Last Post: 06-19-2002, 10:40 PM