Fastream Technologies wrote: > Interesting. Well I am using classes with string properties and I thought > the destructor of the AnsiString class cleans up the memory before > releasing it.
Correct, in classes you don't need to release memory allocated for strings. But you need to finalize records containing dynamic strings, FreeMem or Dispose won't do this job. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > ----- Original Message ----- > From: "Dod" <[EMAIL PROTECTED]> > To: "ICS support mailing" <firstname.lastname@example.org> > Sent: Tuesday, March 21, 2006 11:23 AM > Subject: Re: [twsocket] Server problem (leaking memory) > > >> Hello, >> >> I don't know if it as something to do but if you use records >> containing strings, always think to mystring:='' before releasing >> record memory space because if you free the record, the string >> allocation done inside will be kept. >> >> regards. >> >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://www.elists.org/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be