All announcements, questions and issues related to the TsiLang Components Suite.
-
Stardust
- Posts: 1
- Joined: Wed Mar 11, 2009 10:12 am
Post
by Stardust »
Could it be that the GetTextC function caused a memory leak?
I am using Delphi 2009 with:
Code: Select all
ReportMemoryLeaksOnShutdown := True;
While using the GetTextC Function Delphi reports me a memory leak.
lg
Stardust
-
isiticov
- Site Admin
- Posts: 2416
- Joined: Thu Nov 21, 2002 3:17 pm
Post
by isiticov »
Method GetTextC() allocates a character buffer and returns pointer to it. So the calling code shall free it after usage.
Best regards,
Igor Siticov.