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

C / C++ / MFC

 
GeneralCTreeCtrl Pin
19-Nov-01 0:37
suss19-Nov-01 0:37 
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 
* the easiest way to analyze memory leaks would be to use numegas bound's checker (http://www.microway.com.au/compuware/products.stm)but this is a product you have to buy.. but it should be very good and it reports both memory and resource leaks..

* there is the mfc way to detect memory leaks.. if you are very lucky you can double click on your memory leaks and then the devstudio shows you the code, where the memory got allocated (works sometimes for me.. but i actually dunno when, maybe the objects have to be derived from cobject or whatever)
another way (happened in one of my coworker's programs) the program crashed when the program got closed (it was an invalid timer - handle he wanted to delete) and the result was that noone of the destructors ever got called.. (it is pretty simple to check that case.. if you are using cstring.. and the dump tells you that there occured memory leaks in strcore.h then this is most likely)

if you want to know if one of your methods is leaking memory you can use the CMemoryState Class...

i hope one of your ideas can help you..
bernhard

excuse my bad english, i'm austrian...


""Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason."
GeneralRe: memory leaks Pin
Alvaro Mendez19-Nov-01 11:09
Alvaro Mendez19-Nov-01 11:09 
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 

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.