GetTextC Memory Leak?

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Stardust
Posts: 1
Joined: Wed Mar 11, 2009 10:12 am

GetTextC Memory Leak?

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
Jean-Paul Brassard
Posts: 65
Joined: Thu May 08, 2008 7:46 pm

Post by Jean-Paul Brassard »

Does this memory leak problem also present on Delphi 7?
Jean-Paul Brassard
Quebec, Canada
isiticov
Site Admin
Posts: 2385
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.
Post Reply