I hope, you can reproduce this as I work with frames and this was part of my form.
- add a RadioGroupEx to a frame which is created at runtime on a TPageControl TabSheet
- start the IDE by -gh
- start your project and close it down again.
everything is fine.
Now do nearly the same but
- populate the items with a bundle of strings, no matter how long or how many
- close down your application
- find 21 blocks of unfreed memory
reading
---------------------------
Error
---------------------------
Heap dump by heaptrc unit of C:\project1.exe
319743 memory blocks allocated : 20541338/21810992
319722 memory blocks freed : 20537810/21807464
21 unfreed memory blocks : 3528
True heap size : 2916352 (160 used in System startup)
True free heap : 2907936
Should be : 2908632
Call trace for block $00000000037DBE70 size 64
$0000000100012752
$000000010000F46A
$0000000100084EE5 CREATE, line 23 of include/region.inc
$000000010008AE4A CREATE, line 1513 of include/canvas.inc
$00000001000A33CC CREATE, line 47 of include/controlcanvas.inc
$00000001000C4285 CREATE, line 26 of include/customcontrol.inc
$00000001004354E4 CREATE, line 670 of source/excheckctrls.pas
$0000000100436E24 CREATE, line 1266 of source/excheckctrls.pas
$0000000100438AD2 UPDATEITEMS, line 1910 of source/excheckctrls.pas
$0000000100437A90 UPDATEINTERNALOBJECTLIST, line 1608 of source/excheckctrls.pas
$0000000100437C7E CHANGED, line 1659 of source/excheckctrls.pas
$000000010004
---------------------------
OK
---------------------------