On Jan 15, 2006, at 6:20 AM, Alexander Traud wrote:
static void Test(REALobject instance)
{
REALLoadObjectMethod(instance, "dummy(o As Object) As Object");
}
have you tried a static function pointer to disallow repeated calls to
REALLoadObjectMethod? :
static void Test(REALobject instance)
{
static REALobject (*_fp)(REALobject) = nil;
if (!_fp)
_fp = (REALobject(*)(REALobject))REALLoadObjectMethod(instance,
"dummyMethod");
if (_fp)
return _fp(self);
return 0;
}
This should leak only once....
Alfred
_______________________________________________
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>
|