Freeing a result

[ DelphiLand FAQ ]

Posted by Joey p12386 on July 22, 2004 at 00:34:48:

Heya ;)

Heehee. Message V0.2 ;)

I was just wondering if a function freeded its result after use no matter the type. I have a function with TStringList as a result and i have to use:
Result := TStringList.Create;
But i can't use .Free at the end or i get no result. I was just wondering if delphi did it for you :P if not how could i get round it so i don't churn-up memory??

Thx in advance :)

Joey ^__^

Related Articles and Replies

[ DelphiLand FAQ ]