Re: Memory Leak with AnsiString

From: Michael Anonymous (Michael_at_Anonymous.net)
Date: 01/06/05


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.



Relevant Pages

  • Re: Memory leak in IE javascript with webservice.htc
    ... IE has lots of memory leaks, not surprising that that there is a leak ... calling xmlhttp. ... I doubt that any fix will be coming, as the soap behavior ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Memory leak in IE javascript with webservice.htc
    ... IE has lots of memory leaks, not surprising that that there is a leak ... calling xmlhttp. ... I doubt that any fix will be coming, as the soap behavior ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Question Re: Fed/Nadal
    ... Nadal had the tougher match of the two but Federer struggled more. ... IMO the effects of these semifinals on the final are slim to none. ... it might be good that he will not let his poor form affect him ... Considering he can do little to fix his game before Sunday, ...
    (rec.sport.tennis)
  • Re: Funny comment by David Hobbs on Speed today about Kimis Ferrari..
    ... bias too! ... IMO they should have made Kimi come in and fix it or at ...
    (rec.autos.sport.f1)
  • Re: MS ADO Memory Leak FIX (at last??) for VB6
    ... > Is this finaly the fix fot the long lasting memory leaks? ... in your code you are allowing/causing the recordset to implicitly create ... its connection (by setting ActiveConnection to a connection string instead ...
    (microsoft.public.vb.database.ado)