Memory Leak in Property Sheets

Memory Leak in Property Sheets

Post by UGV0ZX » Mon, 17 May 2004 12:46:02


I am writing a Win32 App and I am using Common Controls to show Property Sheet, and the property sheet has 6 property pages. I have noticed that when I create the property sheet the Memory usage of my app increase by approx 1 MB & when I destroy the property pages the memory isn't freed? and by repeatedly creating & destroying the property sheet the memory ncreases by mutiples of 1 MB and it never comes down. I am not creating anything on the heap, I am filling just 1 list box with approx 6 string values (each less than 50 characters), which I am quite sure I don't have to free myself.

Does anyone knows the cause of this

Thanks
Peter
 
 
 

Memory Leak in Property Sheets

Post by UGV0ZX » Mon, 17 May 2004 13:56:02

Sorry Guys, Actually It was a memory leak in my code, Apparently I had commented out one of the lines that deletes the image, created on heap :