hi, heaptrc detects a number of memory leakage, all pointing to a line where I call TAsyncProcess.Execute to launch an external program. Here is the heaptrc log:
Heap dump by heaptrc unit
52280 memory blocks allocated : 10764537/10892656
52276 memory blocks freed : 10764345/10892464
4 unfreed memory blocks : 192
True heap size : 2883584
True free heap : 2882816
Should be : 2882880
Call trace for block $00007FD5A4A524C0 size 48
$000000000056739A line 44 of include/lclintf.inc
$00000000007A2C3E line 106 of asyncprocess.pp
$0000000000462036 line 524 of mcxgui.pas
$0000000000499BAC
$00000000006C758D line 246 of include/customaction.inc
$000000000049988F
$00000000006692D9 line 826 of include/toolbutton.inc
Call trace for block $00007FD5A3D0AA40 size 48
$000000000056739A line 44 of include/lclintf.inc
$00000000007A2C3E line 106 of asyncprocess.pp
$0000000000465017 line 877 of mcxgui.pas
$0000000000499BAC
$00000000006C758D line 246 of include/customaction.inc
$000000000049988F
$00000000006692D9 line 826 of include/toolbutton.inc
Call trace for block $00007FD5A3D09E40 size 48
$000000000056739A line 44 of include/lclintf.inc
$00000000007A2C3E line 106 of asyncprocess.pp
$0000000000462036 line 524 of mcxgui.pas
$0000000000499BAC
$00000000006C758D line 246 of include/customaction.inc
$000000000049988F
$00000000006692D9 line 826 of include/toolbutton.inc
Call trace for block $00007FD5A3D0A800 size 48
$000000000056739A line 44 of include/lclintf.inc
$00000000007A2C3E line 106 of asyncprocess.pp
$0000000000465017 line 877 of mcxgui.pas
$0000000000499BAC
$00000000006C758D line 246 of include/customaction.inc
$000000000049988F
$00000000006692D9 line 826 of include/toolbutton.inc
all the lines are identical as
for example, Line#524:
https://github.com/fangq/mcx/blob/master/mcxstudio/mcxgui.pas#L524do I need to do anything after calling Execute? thanks