Resource Leak

The place for threads about TimoSoft LabelControls.
Post Reply
baron
Lt. Commander
Posts: 31
Joined: 21 Sep 2013, 18:55

Resource Leak

Post by baron »

Hello again,

When setting the MouseIcon, the label control doesn't release the GDI/User resources after it closes. The fact that it takes up a bunch of resources is not the main issue (although fewer resources would be nice too) - it's that it doesn't release them.

Attached is a simple sample. Click on the button to open a new window, and then close it again while watching the User/GDI.
Attachments
MousePointerBug.zip
Bug Sample
(5.65 KiB) Downloaded 493 times
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Resource Leak

Post by TiKu »

Hi,

thanks for reporting. I think I've found and fixed the problem, hopefully without introducing new problems.

www.timosoft-software.de/stuff/lblctls10677-rel.zip
www.timosoft-software.de/stuff/LblCtls10677-Release.exe

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
baron
Lt. Commander
Posts: 31
Joined: 21 Sep 2013, 18:55

Re: Resource Leak

Post by baron »

Thank you again!

Looks great so far on tests, doesn't even take resources on load.
Post Reply