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

C / C++ / MFC

 
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 
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 
Are there the same number of calls to each function in your source code.

Assuming each inc cas a corresponding dec, look for the code section without the missing dec.

If that cannot be done. I would suggest checking all the dec calss to make sure one cannot be bypassed by an early "return" within the function code.

Next I would place breakpoints at given points so you can check the count value at the inc and dec calls. This should allow you to narrow done the rea of code which is not inc/dec correctly.

Are you sure its not a threading issue? Is it multithreaded and how are the numbrs being increemnted/decremented? this is where InterlockedIncrement and InterlockedDecrement can be of help.
If you vote me down, my score will only get lower

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 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 12:12
mrby12319-May-10 12:12 
AnswerRe: how to stop run of a program after a message display Pin
Maximilien19-May-10 8:43
Maximilien19-May-10 8:43 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 9:15
mrby12319-May-10 9:15 
AnswerRe: how to stop run of a program after a message display Pin
Aescleal19-May-10 12:53
Aescleal19-May-10 12:53 
AnswerRe: how to stop run of a program after a message display Pin
KarstenK19-May-10 21:10
mveKarstenK19-May-10 21:10 
QuestionNeed to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 3:45
sashoalm19-May-10 3: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.