Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Internet Programming help Pin
Andrew Walker1-Jul-03 12:41
Andrew Walker1-Jul-03 12:41 
QuestionCross-Process-Negotiation? Pin
whizer1-Jul-03 9:49
whizer1-Jul-03 9:49 
AnswerRe: Cross-Process-Negotiation? Pin
Joaquín M López Muñoz1-Jul-03 10:17
Joaquín M López Muñoz1-Jul-03 10:17 
QuestionNEWLINE??? Pin
Scozturk1-Jul-03 9:02
professionalScozturk1-Jul-03 9:02 
AnswerRe: NEWLINE??? Pin
David Crow1-Jul-03 10:59
David Crow1-Jul-03 10:59 
AnswerRe: NEWLINE??? Pin
John M. Drescher1-Jul-03 14:23
John M. Drescher1-Jul-03 14:23 
QuestionHow to make an IE toolbar? Pin
kydfru1-Jul-03 7:59
kydfru1-Jul-03 7:59 
GeneralPutting debug info in executable Pin
Patje1-Jul-03 7:04
Patje1-Jul-03 7:04 
Before we upgraded to Visual C/C++ 7.1, we used version 6.0 of the compiler.
To make it easier for us and our help desk to find problems, we linked our production (release) versions with /DEBUG and /PDB:NONE (but all sources were compiled with /Ox and no debug info).
That way information about the addresses of functions and methods were stored in the executable, ready for Dr.Watson to read them.
This also had the advantage that we could use SymGetSymFromAddr to get the symbol name (of a function) for a function address (handy if you e.g. want to report the stack at the moment of a memory leak).

Unfortunately Visual C/C++ does not have the option /PDB:NONE anymore, which means we cannot put this information int he executable anymore (and our nice feature of printing out the stack when a memory leak was found does not work anymore either).

AAAAAAAAAAAArgh.
Is there another way of storing the function addresses so this info can be read by Dr.Watson and still works with SymGetSymFromAddr (the first one is more urgent), using Visual C/C++ 7.1?
Otherwise we have to read stuff like this:

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name<br />
0012F054 00549EBF 01BA91A8 00000001 006AE5E0 0012F0CC !<nosymbols><br />
0012F104 00508DCA 009DDDB0 00000000 00000001 0057A490 !<nosymbols><br />
0012F120 0057A43C 009DDDB0 00000001 0057A490 0012F148 !<nosymbols><br />
0012F1D0 0046F330 01570F58 02DB9118 00000000 00030018 !<nosymbols><br />
0012F29C 0048F9FC 02D88BD8 0012F70C 00000000 01C3C4C0 !<nosymbols>


and map each pointer (probably ReturnAddress) to something similar in the .map file (created with the /MAP option). This is horrible and time consuming.

Somebody who knows a solution?


Enjoy life, this is not a rehearsal !!!

My Articles:
- Implementing a Subject/Observer pattern with templates
- Different ways of writing class factories
- AutoRunner: a template class to automatically run start- and cleanup-code in code blocks
</

GeneralRe: Putting debug info in executable Pin
basementman1-Jul-03 7:39
basementman1-Jul-03 7:39 
GeneralRe: Putting debug info in executable Pin
Peter Weyzen1-Jul-03 9:39
Peter Weyzen1-Jul-03 9:39 
GeneralRe: Putting debug info in executable Pin
Toni781-Jul-03 18:52
Toni781-Jul-03 18:52 
GeneralAbout OnCtlColor Pin
olinn1-Jul-03 6:56
olinn1-Jul-03 6:56 
GeneralRe: About OnCtlColor Pin
Joaquín M López Muñoz1-Jul-03 10:12
Joaquín M López Muñoz1-Jul-03 10:12 
GeneralRe: About OnCtlColor Pin
olinn1-Jul-03 15:41
olinn1-Jul-03 15:41 
GeneralRe: About OnCtlColor Pin
Ryan Binns1-Jul-03 15:53
Ryan Binns1-Jul-03 15:53 
GeneralRe: About OnCtlColor Pin
olinn1-Jul-03 16:26
olinn1-Jul-03 16:26 
GeneralRe: About OnCtlColor Pin
Ryan Binns1-Jul-03 19:04
Ryan Binns1-Jul-03 19:04 
GeneralRe: About OnCtlColor Pin
RChin1-Jul-03 23:15
RChin1-Jul-03 23:15 
QuestionIs it .Net or Vc++ 6.0? Pin
Anonymous1-Jul-03 6:52
Anonymous1-Jul-03 6:52 
AnswerRe: Is it .Net or Vc++ 6.0? Pin
basementman1-Jul-03 7:42
basementman1-Jul-03 7:42 
GeneralRetrieving file name and path from Office applications Pin
Member 3600821-Jul-03 6:09
Member 3600821-Jul-03 6:09 
Generalgetting file property, help help help Pin
pnpfriend1-Jul-03 5:51
pnpfriend1-Jul-03 5:51 
GeneralRe: getting file property, help help help Pin
David Crow1-Jul-03 6:05
David Crow1-Jul-03 6:05 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 9:43
Peter Weyzen1-Jul-03 9:43 
GeneralRe: getting file property, help help help Pin
pnpfriend1-Jul-03 10:52
pnpfriend1-Jul-03 10:52 

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.