Memory Leak when CommandBar Add/Delete

Add-in Express™ Support Service
That's what is more important than anything else

Memory Leak when CommandBar Add/Delete
CommandBarButton Add and Delete Repeat. occured Memory Leak 
Tetsuji Nakaoka


Guest



var
intLoop:INteger;
objButton: TadxCommandBarButton;
begin

for intLoop := 1 to 10000 do begin
objButton := Self.adxSheetSelecter.Controls.Add(adxButton, IntToStr(3), 3 , True).AsButton;
objButton.Caption := 'TEST';
Self.adxSheetSelecter.Controls.DeleteControl(3,False);
end;

end;

Occured Memory Leak. I Checked Task Manager.
Posted 11 Nov, 2005 11:16:57 Top
Tetsuji Nakaoka


Guest


Sorry . my environment

Delphi6 upd3
Excel 2000
Posted 11 Nov, 2005 11:28:26 Top
Dmitry Kostochko


Add-in Express team


Posts: 2799
Joined: 2004-04-05
Hello Tetsuji,

Thank you for the bug report and the detailed description. We need some time to find and fix the bug. I will let you know about the results as soon as possible.

Posted 11 Nov, 2005 12:20:45 Top
Dmitry Kostochko


Add-in Express team


Posts: 2799
Joined: 2004-04-05
Hello Tetsuji,

The bug is found and fixed. If you need the update right now please contact me via email.
Posted 12 Nov, 2005 06:01:17 Top
Tetsuji Nakaoka


Guest


Hello Dmitry.

Thank you response.

I test your code. repeatedly.
but small memory leak occured still now.

I write Excel Macro Same Code.
I compared Excel Macro and Add-in Express Code.

Test Case
CommandBarButton Add(100 Times) Delete(100 Times) * 10 Times * 10 Times

Excel macro Memory Increase 116KByte
Add-In Express Memory Increase 592KByte

I think memory leak occured.
I will Send Test Program and Excel macro via E-Mail.
Posted 16 Nov, 2005 10:26:02 Top
Dmitry Kostochko


Add-in Express team


Posts: 2799
Joined: 2004-04-05
Hello Tetsuji,

I have received your email. I will research what is happening and let you know.

Posted 16 Nov, 2005 10:32:09 Top
Tetsuji Nakaoka


Guest


Thanks Dmitry.

I have received. your e-mail. I will test Your Code by MemoryProof.
Posted 17 Nov, 2005 09:09:34 Top
Dmitry Kostochko


Add-in Express team


Posts: 2799
Joined: 2004-04-05
Hello Tetsuji Nakaoka,

From your last email I can see that we have got rid of memory leaks. So, next week a new ADX build will be published.

Thank you for your help and cooperation.

Posted 25 Nov, 2005 09:18:26 Top