On Nov 21, 2009, at 10:30 AM, Alfred Van Hoek wrote:
I thought it was, given the return of REALGetClassRef. OK, but now I
need to know how to get the instance from the Runtime.ObjecID?
There are these Entry-Points for some of the Runtime methods that will
give you the:
ObjecID,
ObjectClass,
MemoryUsed,
using the resolver mechanism with
RuntimeDebugObjectID,
RuntimeDebugObjectClass,
RuntimeDebugMemoryUsed.
However, using REALLoadFrameworkMethod will not give you the pointers
needed when using for example:
REALLoadFrameworkMethod("Runtime.MemoryUsed() As Integer");
or
REALLoadFrameworkMethod("MemoryUsed() As Integer");
Strangely, in this respect:
REALclassRef objectIterator = REALGetClassRef("Runtime.ObjectIterator");
gives you a valid class reference you can instantiate with
REALNewInstanceWithClass. Note that "Runtime." is required.
I need though:
REALLoadFrameworkMethod("Runtime.IterateObjects() As
ObjectIterator");, which fails with any combination you can think of,
and likely relates to not being able to load the public methods of the
runtime module. Have no idea about an Entry-Point alternative.
It is a show-stopper, because the plugin wants to iterate over all the
objects to find out if objects implement a plugin-defined interface,
which can be accomplished with the sanctioned "RuntimeObjectIsa" entry
point.
a.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>