Recent

Author Topic: TBCLeaEngrave leak varication needed in BGRA controls  (Read 1680 times)

jamie

  • Hero Member
  • *****
  • Posts: 7757
TBCLeaEngrave leak varication needed in BGRA controls
« on: August 02, 2025, 09:46:29 pm »
Can someone please drop a TBCLeaEngrave on the form from the BGRA controls and just simply run it with HeapTrc enabled.

 Exit and tell me if you get a leak?

I installed this package from the Online installer and found some problems, mainly the Engrave which I would really love to use instead on making my own.

Jamie
« Last Edit: August 02, 2025, 10:13:16 pm by jamie »
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 7757
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #1 on: August 02, 2025, 11:02:34 pm »
I located the problem


https://github.com/bgrabitmap/bgracontrols/blob/master/bcleaengrave.pas


If you scroll down to the ReDraw method, the "LayerTextBmp" does not get Free'd!

I added
LayerTextBmp.Free

at the end of the procedure.

Leaks are gone.

I rebuilt the IDE so I can only assume the IDE now has a leak free component there, otherwise it will leak the IDE at some point if you keep playing with it at design time.
 
 That is what I assume, so I hope that also fixes that.

 I have no idea how to report this or get this corrected for everyone else.

 Jamie

« Last Edit: August 02, 2025, 11:16:55 pm by jamie »
The only true wisdom is knowing you know nothing

lainz

  • Hero Member
  • *****
  • Posts: 4743
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #2 on: August 03, 2025, 01:08:41 am »
Hi please report it here

Github.com/bgrabitmap/bgracontrols

jamie

  • Hero Member
  • *****
  • Posts: 7757
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #3 on: August 03, 2025, 02:33:04 am »
I no longer have access there. Sorry.

I suppose I can figure out what happened to my password but whatever.

Anyways, you know the issue, maybe you can fix it. ::)
The only true wisdom is knowing you know nothing

bobby100

  • Sr. Member
  • ****
  • Posts: 301
    • Malzilla
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #4 on: August 10, 2025, 09:28:39 am »
I no longer have access there. Sorry.

I suppose I can figure out what happened to my password but whatever.

Anyways, you know the issue, maybe you can fix it. ::)
Thank you for reporting. I'll take care of this issue

jamie

  • Hero Member
  • *****
  • Posts: 7757
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #5 on: August 10, 2025, 12:37:16 pm »
Okay Bobby thank you very much there is also one in the custom controls I don't remember which one it was that does the same thing
The only true wisdom is knowing you know nothing

bobby100

  • Sr. Member
  • ****
  • Posts: 301
    • Malzilla
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #6 on: August 10, 2025, 03:00:12 pm »
Okay Bobby thank you very much there is also one in the custom controls I don't remember which one it was that does the same thing
Got it ( procedure TBGRADrawer.DrawRadioButtonCircle ).
I'll try to get time for a commit today. Currently painting the kitchen :)

jamie

  • Hero Member
  • *****
  • Posts: 7757
Re: TBCLeaEngrave leak varication needed in BGRA controls
« Reply #7 on: August 10, 2025, 03:02:32 pm »
Yes of course, the honey do projects come first!  :D

Jamie
The only true wisdom is knowing you know nothing


 

TinyPortal © 2005-2018