Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl Pin
Joel Lucsy19-Nov-01 3:09
Joel Lucsy19-Nov-01 3:09 
GeneralRe: CTreeCtrl Pin
Shog920-Nov-01 12:22
sitebuilderShog920-Nov-01 12:22 
GeneralODBC OS Specific error Pin
Deian19-Nov-01 0:34
Deian19-Nov-01 0:34 
GeneralRe: ODBC OS Specific error Pin
Alvaro Mendez19-Nov-01 10:54
Alvaro Mendez19-Nov-01 10:54 
GeneralRe: ODBC OS Specific error Pin
Deian19-Nov-01 23:04
Deian19-Nov-01 23:04 
Generalmemory leaks Pin
luckylourson18-Nov-01 23:22
luckylourson18-Nov-01 23:22 
GeneralRe: memory leaks Pin
Bernhard19-Nov-01 3:08
Bernhard19-Nov-01 3:08 
GeneralRe: memory leaks Pin
Alvaro Mendez19-Nov-01 11:09
Alvaro Mendez19-Nov-01 11:09 
I've used BoundsChecker a few times over the past several years and it's helped me very little. Often times it's just plain annoying in the amount of "who cares" stuff it reports. Other times it's just too slow to wait for. Still, a lot of people seem to like it, especially for finding GDI resource leaks, so...

The MFC way is pretty reliable for memory leaks. All you need is this at the top of every CPP file, after the includes:

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

... and you'll get the name of the source files in the memory dump at the end of the program. Then you can double click on the file and you'll see who's allocating memory that doesn't get freed. Concentrate on fixing the ones in your own code, of course.

Regards,
Alvaro

Oh, and please excuse my bad English, I'm American Smile | :)

GeneralRe: memory leaks Pin
Derek Waters19-Nov-01 14:13
Derek Waters19-Nov-01 14:13 
GeneralRe: memory leaks Pin
Bernhard19-Nov-01 19:21
Bernhard19-Nov-01 19:21 
Generalthanx Pin
luckylourson19-Nov-01 23:14
luckylourson19-Nov-01 23:14 
GeneralRe: thanx Pin
Bernhard19-Nov-01 23:24
Bernhard19-Nov-01 23:24 
GeneralRe: memory leaks Pin
Alvaro Mendez20-Nov-01 8:22
Alvaro Mendez20-Nov-01 8:22 
GeneralRe: memory leaks Pin
Rassman20-Nov-01 5:56
Rassman20-Nov-01 5:56 
GeneralEmbedded ActiveX control Pin
RaviRao18-Nov-01 22:20
RaviRao18-Nov-01 22:20 
GeneralRe: Embedded ActiveX control Pin
Rassman19-Nov-01 2:50
Rassman19-Nov-01 2:50 
GeneralAdding Hot spot to help ! Pin
Hadi Rezaee18-Nov-01 20:29
Hadi Rezaee18-Nov-01 20:29 
GeneralRe: Adding Hot spot to help ! Pin
Roger Allen19-Nov-01 5:26
Roger Allen19-Nov-01 5:26 
GeneralRe: Adding Hot spot to help ! Pin
Hadi Rezaee19-Nov-01 7:59
Hadi Rezaee19-Nov-01 7:59 
GeneralRe: Adding Hot spot to help ! Pin
Roger Allen19-Nov-01 23:26
Roger Allen19-Nov-01 23:26 
GeneralRe: Adding Hot spot to help ! Pin
Hadi Rezaee20-Nov-01 1:05
Hadi Rezaee20-Nov-01 1:05 
GeneralHelp Context icon ... Pin
Hadi Rezaee18-Nov-01 20:26
Hadi Rezaee18-Nov-01 20:26 
GeneralRe: Help Context icon ... Pin
Roger Allen19-Nov-01 5:38
Roger Allen19-Nov-01 5:38 
GeneralRe: Help Context icon ... Pin
Hadi Rezaee19-Nov-01 6:53
Hadi Rezaee19-Nov-01 6:53 
GeneralCEdit subclassing Pin
Nick Blumhardt18-Nov-01 19:42
Nick Blumhardt18-Nov-01 19:42 

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.