Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Button Size Pin
Stephen Hewitt19-May-10 20:03
Stephen Hewitt19-May-10 20:03 
GeneralRe: Button Size Pin
AbhiHcl19-May-10 21:35
AbhiHcl19-May-10 21:35 
AnswerRe: Button Size Pin
Aescleal19-May-10 22:57
Aescleal19-May-10 22:57 
QuestionAbout MSDN Library? Pin
Syouki_kou19-May-10 16:27
Syouki_kou19-May-10 16:27 
AnswerRe: About MSDN Library? Pin
Niklas L2-Jun-10 9:24
Niklas L2-Jun-10 9:24 
Questiondebugging app to find out which code module doesn't decrease a count Pin
abiemann19-May-10 10:43
abiemann19-May-10 10:43 
AnswerRe: debugging app to find out which code module doesn't decrease a count Pin
«_Superman_»19-May-10 10:53
professional«_Superman_»19-May-10 10:53 
AnswerRe: debugging app to find out which code module doesn't decrease a count Pin
abiemann19-May-10 11:06
abiemann19-May-10 11:06 
my current idea is to define the following with #ifdef _DEBUG playing a huge role:

in the class:

#ifdef _DEBUG
static Uint32 incCount (char cModule);
static void decCount (char cModule);
#else
static Uint32 incCount ();
static void decCount ();
#endif

the class where these functions are defined also implements a linked list. For each incCount(char) the char is added to the linked list (if it doesn't yet exist in the list), and for each decCount(char) the char is removed from the linked list.


then for each time the functions are called in the code:

#ifdef _DEBUG
decCount(__FILE__);
#else
decCount();
#endif


At the end of the program I dump what's in the linked list and the __FILE__ that is dumped is where I need to focus on by setting breakpoints.

However, this will touch at least 40 files. Is this the best method or is there a better method ?

For example, it would be incredible if I had programmatic access to the call stack (in a debug build) so that I would only need to edit this one class and add the source file to the linked list that's next in the stack.
AnswerRe: debugging app to find out which code module doesn't decrease a count Pin
Luc Pattyn19-May-10 11:11
sitebuilderLuc Pattyn19-May-10 11:11 
GeneralRe: debugging app to find out which code module doesn't decrease a count [modified] Pin
abiemann19-May-10 11:23
abiemann19-May-10 11:23 
GeneralRe: debugging app to find out which code module doesn't decrease a count Pin
Luc Pattyn19-May-10 11:31
sitebuilderLuc Pattyn19-May-10 11:31 
GeneralRe: debugging app to find out which code module doesn't decrease a count Pin
abiemann19-May-10 13:33
abiemann19-May-10 13:33 
AnswerRe: debugging app to find out which code module doesn't decrease a count Pin
Aescleal19-May-10 12:31
Aescleal19-May-10 12:31 
AnswerRe: debugging app to find out which code module doesn't decrease a count Pin
Roger Allen21-May-10 6:30
Roger Allen21-May-10 6:30 
GeneralRe: debugging app to find out which code module doesn't decrease a count Pin
abiemann21-May-10 8:52
abiemann21-May-10 8:52 
Questionhow to stop run of a program after a message display [modified] Pin
mrby12319-May-10 7:10
mrby12319-May-10 7:10 
QuestionRe: how to stop run of a program after a message display Pin
David Crow19-May-10 7:32
David Crow19-May-10 7:32 
AnswerRe: how to stop run of a program after a message display Pin
mrby12319-May-10 8:23
mrby12319-May-10 8:23 
QuestionRe: how to stop run of a program after a message display Pin
David Crow19-May-10 8:44
David Crow19-May-10 8:44 
AnswerRe: how to stop run of a program after a message display Pin
Luc Pattyn19-May-10 7:39
sitebuilderLuc Pattyn19-May-10 7:39 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 9:13
mrby12319-May-10 9:13 
GeneralRe: how to stop run of a program after a message display Pin
Luc Pattyn19-May-10 9:39
sitebuilderLuc Pattyn19-May-10 9:39 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 10:40
mrby12319-May-10 10:40 
GeneralRe: how to stop run of a program after a message display Pin
«_Superman_»19-May-10 10:46
professional«_Superman_»19-May-10 10:46 
GeneralRe: how to stop run of a program after a message display Pin
Luc Pattyn19-May-10 11:19
sitebuilderLuc Pattyn19-May-10 11:19 

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.