Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: maintain logfile of the accessed files Pin
David Crow28-Dec-05 5:36
David Crow28-Dec-05 5:36 
AnswerRe: maintain logfile of the accessed files Pin
basementman28-Dec-05 5:38
basementman28-Dec-05 5:38 
Questiondetecting memory leaks? Pin
9ine28-Dec-05 1:39
9ine28-Dec-05 1:39 
AnswerRe: detecting memory leaks? Pin
Axter28-Dec-05 2:27
professionalAxter28-Dec-05 2:27 
GeneralRe: detecting memory leaks? Pin
9ine28-Dec-05 4:50
9ine28-Dec-05 4:50 
GeneralRe: detecting memory leaks? Pin
Axter28-Dec-05 4:59
professionalAxter28-Dec-05 4:59 
GeneralRe: detecting memory leaks? Pin
9ine28-Dec-05 23:47
9ine28-Dec-05 23:47 
GeneralRe: detecting memory leaks? Pin
Axter29-Dec-05 1:05
professionalAxter29-Dec-05 1:05 
I see the problem. This is an over-sight on our part.
In your above code, you have the following:
#ifdef _DEBUG
#define new DEBUG_NEW
#endif

If you include the leaktracker.h file after the above line, that will cause the compile errors.

I've updated the leaktracker.h file so that it does an #undef for new.
#ifdef new
#undef new
#endif //new

You can download the new version, or just add the above 3 lines in the leaktracker.h file around line 177 (right before the new operator).

http://code.axter.com/leaktracker.h[^]

FYI:
If you're using MFC, also make sure to include the header after macros like IMPLEMENT_DYNCREATE.

Top ten member of C++ Expert Exchange.
http://www.experts-exchange.com/Cplusplus
GeneralRe: detecting memory leaks? Pin
9ine29-Dec-05 5:31
9ine29-Dec-05 5:31 
AnswerRe: detecting memory leaks? Pin
vipinasda28-Dec-05 3:38
vipinasda28-Dec-05 3:38 
GeneralRe: detecting memory leaks? Pin
Axter28-Dec-05 5:02
professionalAxter28-Dec-05 5:02 
GeneralRe: detecting memory leaks? Pin
vipinasda28-Dec-05 6:15
vipinasda28-Dec-05 6:15 
AnswerRe: detecting memory leaks? Pin
Prakash Nadar28-Dec-05 5:30
Prakash Nadar28-Dec-05 5:30 
AnswerRe: detecting memory leaks? Pin
MF28-Dec-05 15:19
MF28-Dec-05 15:19 
QuestionConverting int to char Pin
RedDragon2k28-Dec-05 1:17
RedDragon2k28-Dec-05 1:17 
AnswerRe: Converting int to char Pin
sunit528-Dec-05 1:29
sunit528-Dec-05 1:29 
GeneralRe: Converting int to char Pin
RedDragon2k28-Dec-05 1:47
RedDragon2k28-Dec-05 1:47 
GeneralRe: Converting int to char Pin
sunit528-Dec-05 1:58
sunit528-Dec-05 1:58 
GeneralRe: Converting int to char Pin
vikas amin28-Dec-05 1:58
vikas amin28-Dec-05 1:58 
GeneralRe: Converting int to char Pin
RedDragon2k28-Dec-05 2:05
RedDragon2k28-Dec-05 2:05 
AnswerRe: Converting int to char Pin
David Crow28-Dec-05 5:40
David Crow28-Dec-05 5:40 
AnswerRe: Converting int to char Pin
Gary R. Wheeler28-Dec-05 5:54
Gary R. Wheeler28-Dec-05 5:54 
QuestionQuerying CSV file Pin
Rajesh R Subramanian28-Dec-05 0:42
professionalRajesh R Subramanian28-Dec-05 0:42 
AnswerRe: Querying CSV file Pin
ThatsAlok28-Dec-05 0:56
ThatsAlok28-Dec-05 0:56 
GeneralRe: Querying CSV file Pin
Rajesh R Subramanian28-Dec-05 17:27
professionalRajesh R Subramanian28-Dec-05 17:27 

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.