Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compile problem - precompiled headers Pin
Antony M Kancidrowski17-Dec-04 1:19
Antony M Kancidrowski17-Dec-04 1:19 
GeneralRe: Compile problem - precompiled headers Pin
rrrado17-Dec-04 2:21
rrrado17-Dec-04 2:21 
GeneralRe: Compile problem - precompiled headers Pin
rrrado17-Dec-04 3:02
rrrado17-Dec-04 3:02 
QuestionHelp :usb device monitoring ? Pin
etdo17-Dec-04 0:25
etdo17-Dec-04 0:25 
GeneralMouse wheel in Dialog application Pin
Anonymous16-Dec-04 21:45
Anonymous16-Dec-04 21:45 
GeneralRe: Mouse wheel in Dialog application Pin
PJ Arends16-Dec-04 21:55
professionalPJ Arends16-Dec-04 21:55 
GeneralProblem about finding memory leak Pin
ytod16-Dec-04 21:32
ytod16-Dec-04 21:32 
GeneralRe: Problem about finding memory leak Pin
PJ Arends16-Dec-04 22:08
professionalPJ Arends16-Dec-04 22:08 
VS has the ability to help you with that. What you have to do is add the following lines, which should be there by default, to the beginning of every cpp file in your project
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
If you have these lines in your code, then the debugger will give you the file name and line number of where the leaked memory was allocated, making it easier for you to figure out where you forgot to add the delete.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralRe: Problem about finding memory leak Pin
ytod16-Dec-04 22:26
ytod16-Dec-04 22:26 
GeneralRe: Problem about finding memory leak Pin
FayezElFar17-Dec-04 15:42
FayezElFar17-Dec-04 15:42 
GeneralDisplay unicode chars in EditBox Pin
kthanigai7416-Dec-04 21:22
susskthanigai7416-Dec-04 21:22 
GeneralRe: Display unicode chars in EditBox Pin
toxcct17-Dec-04 6:09
toxcct17-Dec-04 6:09 
GeneralActiveX ctrl not loading in browser Pin
Muhammad Azam16-Dec-04 20:10
Muhammad Azam16-Dec-04 20:10 
Questionhow to set shared scrollbars?? Pin
butterfly10116-Dec-04 19:44
butterfly10116-Dec-04 19:44 
Generalplaying audio files at different speeds Pin
Member 191911516-Dec-04 18:39
Member 191911516-Dec-04 18:39 
GeneralAlternative STL Pin
Marc Clifton16-Dec-04 16:01
mvaMarc Clifton16-Dec-04 16:01 
GeneralRe: Alternative STL Pin
valikac16-Dec-04 16:55
valikac16-Dec-04 16:55 
Generalshare data segment Pin
yingkou16-Dec-04 15:44
yingkou16-Dec-04 15:44 
QuestionChecking for Adobe Acrobat Reader installed? Pin
Uwe Keim16-Dec-04 15:25
sitebuilderUwe Keim16-Dec-04 15:25 
AnswerRe: Checking for Adobe Acrobat Reader installed? Pin
ThatsAlok16-Dec-04 17:18
ThatsAlok16-Dec-04 17:18 
GeneralRe: Checking for Adobe Acrobat Reader installed? Pin
Uwe Keim16-Dec-04 19:56
sitebuilderUwe Keim16-Dec-04 19:56 
AnswerRe: Checking for Adobe Acrobat Reader installed? Pin
Henry miller17-Dec-04 4:44
Henry miller17-Dec-04 4:44 
GeneralRe: Checking for Adobe Acrobat Reader installed? Pin
Trollslayer17-Dec-04 5:27
mentorTrollslayer17-Dec-04 5:27 
GeneralHTML as an external resource Pin
(Steven Hicks)n+116-Dec-04 13:14
(Steven Hicks)n+116-Dec-04 13:14 
GeneralRESOLVED: HTML as an external resource Pin
(Steven Hicks)n+116-Dec-04 16:41
(Steven Hicks)n+116-Dec-04 16:41 

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.