Click here to Skip to main content
16,016,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ And Visual C ++ ? Pin
Anilkumar K V28-Sep-06 19:46
Anilkumar K V28-Sep-06 19:46 
Questionanyone know about apriori source code in C++? Pin
cannielynn28-Sep-06 17:03
cannielynn28-Sep-06 17:03 
AnswerRe: anyone know about apriori source code in C++? Pin
ShilpiP28-Sep-06 19:00
ShilpiP28-Sep-06 19:00 
GeneralInstalling a VC8 app on W2K Pin
PJ Arends28-Sep-06 9:22
professionalPJ Arends28-Sep-06 9:22 
GeneralRe: Installing a VC8 app on W2K Pin
PJ Arends28-Sep-06 9:55
professionalPJ Arends28-Sep-06 9:55 
GeneralRe: Installing a VC8 app on W2K Pin
S Douglas30-Sep-06 22:05
professionalS Douglas30-Sep-06 22:05 
GeneralRe: Installing a VC8 app on W2K Pin
PJ Arends2-Oct-06 10:02
professionalPJ Arends2-Oct-06 10:02 
GeneralRe: Installing a VC8 app on W2K Pin
Stephen Hewitt28-Sep-06 14:34
Stephen Hewitt28-Sep-06 14:34 
PJ Arends wrote:
Using the map file generated by VC8 the nearest I could figure is that it is crashing somewhere in the std::vector::erase method.

  I assume you're using a map file to find where an exception is occurring in the source code on a release build. Although I've noticed that lots of people use this technique, it is totally unnecessary and the hard way to do things. In a debug build the information that enables the debugger to map from an address to a source line is the debug info, typically a .PDB file. Map files provide similar (but less) information in a human readable form. Just like a map file can be enabled for a release build, so can the debug information. When this is done you just debug as normal in the release build and there is no need to dig through a map file. Here’s the alterations I make in MSVC6:
- Select “Project->Settings”
- Select “Release” configuration.
- Select “C/C++” tab.
- In the “Category” combo select “General”.
- In the “Debug info” combo select “Program Database”. Note that in a debug build you’d select “Program Database for Edit and Continue”.
- Select the “Link” tab.
- Select “Debug” in the “Category” combo.
- Tick/select “Debug info”, “Microsoft format” & “Separate types” (same as in debug builds).

This is the first change I make when setting up a new project. If I made the IDE these would be the default settings.

Debug information is just as important for release builds, in some ways more so. If you receive crash dumps and have to do postmortem analysis they are invaluable. It’s best to use the symbol server (comes with WinDBG) to keep all your symbols safe and easily accessible.

Steve

GeneralRe: Installing a VC8 app on W2K Pin
Wes Aday29-Sep-06 5:01
professionalWes Aday29-Sep-06 5:01 
Questionstd::string to const WCHAR* Pin
Stick^28-Sep-06 8:13
Stick^28-Sep-06 8:13 
AnswerRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 8:44
David Crow28-Sep-06 8:44 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 8:50
James R. Twine28-Sep-06 8:50 
QuestionRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 8:58
David Crow28-Sep-06 8:58 
AnswerRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 9:03
James R. Twine28-Sep-06 9:03 
GeneralRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 9:16
David Crow28-Sep-06 9:16 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 12:35
James R. Twine28-Sep-06 12:35 
GeneralRe: std::string to const WCHAR* Pin
Jörgen Sigvardsson28-Sep-06 12:42
Jörgen Sigvardsson28-Sep-06 12:42 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 14:01
James R. Twine28-Sep-06 14:01 
GeneralRe: std::string to const WCHAR* Pin
Jörgen Sigvardsson28-Sep-06 14:06
Jörgen Sigvardsson28-Sep-06 14:06 
QuestionRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 16:11
David Crow28-Sep-06 16:11 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 17:16
James R. Twine28-Sep-06 17:16 
GeneralRe: std::string to const WCHAR* Pin
David Crow29-Sep-06 2:39
David Crow29-Sep-06 2:39 
GeneralRe: std::string to const WCHAR* Pin
Stick^28-Sep-06 9:00
Stick^28-Sep-06 9:00 
GeneralRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 9:20
David Crow28-Sep-06 9:20 
AnswerRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 8:45
James R. Twine28-Sep-06 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.