Stepping thru binary of debug version produces different result than running the debug binary (MSVS)
-
Hey folks I'm writing .html files to disk, and when I run my application normally, I get several garbage characters. When I step thru the debugger and look at the functions CreateFile and WriteFile and what I'm passing them, the program not passes appropriate values, but actuall produces files free of any garbage. I'm really concerned that if stepping thru the debugger doesn't find these errors, I'll never be able to find them by hand. Any ideas on making the debugger comply with the real world (turning off stuf.. etc)? Thanks!
-
Hey folks I'm writing .html files to disk, and when I run my application normally, I get several garbage characters. When I step thru the debugger and look at the functions CreateFile and WriteFile and what I'm passing them, the program not passes appropriate values, but actuall produces files free of any garbage. I'm really concerned that if stepping thru the debugger doesn't find these errors, I'll never be able to find them by hand. Any ideas on making the debugger comply with the real world (turning off stuf.. etc)? Thanks!
-
Your problem might be the result of the different new() functionality. In debug mode, the allocated buffer is filled with nulls. In release mode, it isn't. Else, try a Rebuild All in debug mode.