Re: Memory Leak with AnsiString
From: Michael Anonymous (Michael_at_Anonymous.net)
Date: 01/06/05
- Next message: Elric Pedder: "Re: D2005 Speed Problem"
- Previous message: JED: "Re: D2005 Speed Problem"
- In reply to: Rudy Velthuis [TeamB]: "Re: Memory Leak with AnsiString"
- Next in thread: Rudy Velthuis [TeamB]: "Re: Memory Leak with AnsiString"
- Reply: Rudy Velthuis [TeamB]: "Re: Memory Leak with AnsiString"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 06 Jan 2005 10:31:15 -0700
Rudy Velthuis [TeamB] wrote:
> Michael Anonymous wrote:
>
>
>>I'm not sure what you are trying to say.
>>What isn't necessary?
>
>
> To turn the (IMO more intuitive) function into a procedure with a var
> parameter.
>
The more intuitive function didn't work and caused memory leaks.
One needs other alternatives to fix the problem.
The original poster's ( and my own ) fix worked.
I wasn't aware that you provided a fix only a way to decrease the
reference count on a string ( pass as a pchar ).
I'm not sure that would even fix the original problem of memory leaks.
Did you try it?
I did. It didn't solve the problem on my computer.
I would like to see this intuitive function fix you are talking about.
Please do provide an example using the poster original code.
Michael.
- Next message: Elric Pedder: "Re: D2005 Speed Problem"
- Previous message: JED: "Re: D2005 Speed Problem"
- In reply to: Rudy Velthuis [TeamB]: "Re: Memory Leak with AnsiString"
- Next in thread: Rudy Velthuis [TeamB]: "Re: Memory Leak with AnsiString"
- Reply: Rudy Velthuis [TeamB]: "Re: Memory Leak with AnsiString"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|