On Jan 30, 2006, at 1:17 PM, Norman Palardy wrote:
But I know you can't put arrays into arrays and variants cannot hold
arrays so I think what he's after may simply not exist.
No, Given that the byref declaration: "Items(Byref vars() As
MyVariant" is working as expected, i.e. We can get an array of type
MyVariant (super = Object, not Variant), RB does not understand the
declaration:
"Items() As MyVariant()". According to the LR the critical point is the
"()" after the type declaration. RB does not parse correctly from such
a declaration,
Nor does this lead to a valid function pointer:
REALobjectArray Dictionary_Values(REALobject self)
{
static REALobjectArray (*_fp)(REALobject) = nil;
if (!_fp)
_fp = (REALobjectArray(*)(REALobject))REALLoadObjectMethod(self,
"Values() As Variant()");
if (_fp)
return _fp(self);
return 0;
}
While using an unsupported entry point (I know, I shouldn't):
if (!_fp)
_fp =
(REALobjectArray(*)(REALobject))CallResolver("dictionaryValues");
if (_fp)
return _fp(self);
It returns a REALobjectArray, but wish I wouldn't need an entry point
for this.
All I am hoping is a rapid release of a novel sdk to sanction locking
and unlocking of a REALobjectArray (here I use unsupported entry points
that show valid function pointers, and refCounts going up or down, but
still a memory leak) in addition to the fix of the REALmethodDefinition
parser...
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>
|