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 

GetTextC Memory Leak?

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



Joined: 11 Mar 2009
Posts: 1

PostPosted: Wed Mar 11, 2009 1:38 pm    Post subject: GetTextC Memory Leak? Reply with quote

Could it be that the GetTextC function caused a memory leak?

I am using Delphi 2009 with:

Code:
ReportMemoryLeaksOnShutdown := True;


While using the GetTextC Function Delphi reports me a memory leak.


lg
Stardust
Back to top
View user's profile Send private message
Jean-Paul Brassard



Joined: 08 May 2008
Posts: 65

PostPosted: Thu Mar 26, 2009 6:22 pm    Post subject: Reply with quote

Does this memory leak problem also present on Delphi 7?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Mar 27, 2009 6:20 am    Post subject: Reply with quote

Method GetTextC() allocates a character buffer and returns pointer to it. So the calling code shall free it after usage.
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