realbasic-plugins
[Top] [All Lists]

Re: String Property Leaks

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: String Property Leaks
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Thu, 15 Jun 2006 17:42:10 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <DDC8D5BC-9B4E-4844-80D3-E85EBD063A5D at einhugur dot com> <F2B312ED-BA80-4200-9C70-251AF1C6F621 at realsoftware dot com> <BD703FC8-66A9-417E-AD23-F9408398A6C9 at einhugur dot com>

On Jun 15, 2006, at 5:30 PM, Björn Eiríksson wrote:


On 15.6.2006, at 22:27, Jonathan Johnson wrote:

I doubt it's the latter -- that code hasn't changed in an extremely long time (before I even started working here). Is your destructor being called?

-Jon


Yes the entire Grid control gets correctly disposed in the Dispose event, leaving the byte count of the String properties left.

Note if it is a bug in REALbasic REALstandardSetter then it might not be a new one at all, I at least have never tested for it before.

The entire framework would be leaking all over the place if this was the case. The function used for the standard setter is used for a lot of the C++ framework also.

So, it only leaks the byte count of the string itself? I would expect any leak to be of the string header + the length of the string.

How are you determining the leak?

-Jon


--
Jonathan Johnson
jonj at realsoftware dot com
REAL Software, Inc.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>