On Jun 15, 2006, at 5:24 PM, Björn Eiríksson wrote:
Hello
I found that string properties with REALstandardGetter and
REALstandardSetter, defined like bellow will leak:
{"Font", "StartupLinuxFont", "String",
REALpropInvalidate,REALstandardGetter,REALstandardSetter,
FieldOffset(TableControlData, StartupLinuxFontName)},
In the Dispose Event of the control then the following is called:
REALUnlockString(me->StartupLinuxFontName);
And the following is called in the Init method of the control:
me->StartupLinuxFontName = REALBuildString("Geneva",6);
The property is not connected to anything else nor accessed or
touched in any other place.
Now why does it leak ? Is it a bug in REALbasic handling of
REALstandardSetter for REALstring ?
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
--
Jonathan Johnson
[EMAIL PROTECTED]
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>