Hi all,
I have some TStrigGrid's on a form with AutoFillColumns := true;
I was monkeying around with SizePriority trying to figure out what it did by
setting a few columns' SizePriority to "2". At any rate, when running the app
with heaptrc active it reports the following on application close:
M:\lazarus\projects\maestro\maestro.exe
Heap dump by heaptrc unit
17744 memory blocks allocated : 584450/634648
17732 memory blocks freed : 584402/634552
12 unfreed memory blocks : 48
True heap size : 1081344 (112 used in System startup)
True free heap : 1080272
Should be : 1080464
Call trace for block $015E38A0 size 4
$004ECC93 TGRIDCOLUMN__SETSIZEPRIORITY, line 8536 of Grids.pas
$00441A37 SETORDPROP, line 896 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/typinfo.pp
$0042C2CC TREADER__READPROPVALUE, line 1104 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/classes/reader.inc
$0042BDD9 TREADER__READPROPERTY, line 1047 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/classes/reader.inc
$0042B10B TREADER__READCOLLECTION, line 685 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/classes/reader.inc
$0042C55A TREADER__READPROPVALUE, line 1165 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/classes/reader.inc
$0042BDD9 TREADER__READPROPERTY, line 1047 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/classes/reader.inc
$0042B8AF TREADER__READDATA, line 856 of
C:/temp/lazbuild/fpc-patched/rtl/objpas/classes/reader.inc
There appears to be a reported leak like that one above, for each TStringGrid on
the form that has those particular properties mentioned above.
When setting SizePriority back to 1 for every column on every grid, the problem
seems to go away:
M:\lazarus\projects\maestro\maestro.exe
Heap dump by heaptrc unit
17511 memory blocks allocated : 571010/620600
17511 memory blocks freed : 571010/620600
0 unfreed memory blocks : 0
True heap size : 1048576 (112 used in System startup)
True free heap : 1048464
I don't actually need SizePriority set to anything other than 1, I was just
messing around, but thought I'd report it.
This is Lazarus 0.9.24 and FPC 2.2.0 from sourceforge .24 installer.
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door to
door."
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives