04-06-2013, 02:19 PM
I see, hb=CopyImage(hb 0 width height LR_COPYDELETEORG)
WIthout using that flag the original image was hanging around
Updated functions above. When I run the memory of QM does not grow and the GDI objects goes up on load but then right back down. Looks good to me!
Thank you so much for helping out. I would have never known what to do about that. Now I have to go back through all my code I've ever written and look for memory leaks.
I really didn't understand what memory leaks were or how to fix them before. I only knew they were BAD!
This has been a terrific exercise and learning experience. Finally I can load images into dialogs on the fly!!
-Jim
WIthout using that flag the original image was hanging around
Updated functions above. When I run the memory of QM does not grow and the GDI objects goes up on load but then right back down. Looks good to me!
Thank you so much for helping out. I would have never known what to do about that. Now I have to go back through all my code I've ever written and look for memory leaks.
I really didn't understand what memory leaks were or how to fix them before. I only knew they were BAD!
This has been a terrific exercise and learning experience. Finally I can load images into dialogs on the fly!!
-Jim
