gfilatov wrote:Roberto,Roberto Lopez wrote:Rathi, Grigory, Ricci,
What about memory leaks?
How can I check it?
I'd like to help to fix them...
TIA.
It is related to functions _SetPicture(), _EnableControl() and _DisableControl() in the source h_controlmisc.prg
and Button and Checkbox control with IsAppThemed() condition because we use here the Imagelist instead of the bitmap.
Solution was proposed by Ricci and consist in the adding a string
IMAGELIST_DESTROY ( _HMG_SYSDATA [ 37 ] [y] )
before the string _SetMixedBtnPictureDisabled( c , y ) or string _HMG_SYSDATA [ 37 ] := _SetMixedBtnPicture ( _HMG_SYSDATA [3] , FileName , _HMG_SYSDATA [26] )
OR replace the string
DeleteObject ( _HMG_SYSDATA [ 37 ] )
with
IMAGELIST_DESTROY ( _HMG_SYSDATA [ 37 ] [y] )
in aboved functions.
Hope that helps.
Ok. Thanks for your response.
Rathi: Were this changes already applied?
Grigory: Do you know how the leaks can be tested? (I mean find the used handles count priot and after app. execution).
TIA.