Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

visual c++ question

Posted on 2003-03-23
1
Medium Priority
?
342 Views
Last Modified: 2010-04-01
i'm working on a networking program and I compiled my program with go (F5) show i can check my breakpoints and my program will display these values in my program correctly, but if i try anything else like batch build - release or execute (ctrl+F5) and I will get values way off from the correct values.

How can I get the debug mode (go - F5) values (correct values) into the release batch?

what makes go (F5) different from the other compiling options that it will display different values from the others?
0
Comment
Question by:ice911
1 Comment
 
LVL 48

Accepted Solution

by:
AlexFM earned 200 total points
ID: 8189384
You can debug the program if it contains debug information. By default, only Debug version contains debug information. Changing of project settings allows to add debug information also to Release configuration:

http://www.codeguru.com/debug/release_ver.shtml

With these changes you can use Go command also in Release mode. Some problems still remain when you are debugging the Release version because of compiler optimizations.

Other way to see values of variables in Release mode is using of OutputDebugString instead of TRACE.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question