Re: Memory leak using NewAnsiString
From: Arnau Font (afont_at_nospam-ipssoft.com)
Date: 11/27/03
- Next message: Kurt Barthelmess: "Re: TObjectList pointer problem"
- Previous message: Kurt Barthelmess: "Re: Memory leak using NewAnsiString"
- In reply to: Arnau Font: "Memory leak using NewAnsiString"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 Nov 2003 13:08:11 +0100
So sorry!!! After looking a lot of places, I've seen that AQTime needs the
project to be compiled with the 'build with run-time packages' option
activated!!!
Only one memory leak remaining ;)
Thanks!
Sorry about all the mess! Thanks a lot for your comments!
"Arnau Font" <afont@nospam-ipssoft.com> wrote in message
news:3fc34bf4$1@newsgroups.borland.com...
> Hi,
>
> I've tested my application using one debugger, and the results are that
> there are some memory leaks, most of them involving the use of strings,
like
> in this case:
>
> var
> s: String;
> begin
> s:=ProcThatFillsTheStr(bla,bla);
> DoSomethingWithString(s);
> end;
>
> The debugger says that 's' generates a memory leak, but shouldn't it be
> freed automatically by the delphi compiler?
>
> What should I do? Pass the 's' string as a var parameter to the function?
> Call finalitze or SetLength(s,0) at the end of the procedure?
>
> Thnaks!
>
>
- Next message: Kurt Barthelmess: "Re: TObjectList pointer problem"
- Previous message: Kurt Barthelmess: "Re: Memory leak using NewAnsiString"
- In reply to: Arnau Font: "Memory leak using NewAnsiString"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|