SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Memory Leak

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
svenheuer



Joined: 18 Feb 2007
Posts: 12

PostPosted: Wed Jan 16, 2008 8:48 am    Post subject: Memory Leak Reply with quote

Maybe in 6.2 i just found a memory leak in siComp.

Can you check the line 8203 - Lst.CommaText := Value;

The fastMM Memory manager complains about this line. Indeed I see a Lst := TStringList.Create; But no destroy code (on the first look).

Greetings
Sven

Update - i added a lst.free in the following try finally block and the memory manager feels happy. is this ok?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Jan 16, 2008 10:43 am    Post subject: Reply with quote

Indeed, this is a leak and thank you for reporting this. Your fix is OK.
Back to top
View user's profile Send private message
DavidD



Joined: 07 Mar 2007
Posts: 17
Location: United States

PostPosted: Thu Jan 17, 2008 6:21 pm    Post subject: Reply with quote

This is on line 7999 in the 16-Nov-2006 version of siComp.

How often would this be called? It looks, maybe, like only on a Change Language event.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Fri Jan 18, 2008 5:20 am    Post subject: Reply with quote

In quite rare cases upon language changing when you translate using Extended Translations and include the any multiline (TStrings) property.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group