On Jun 3, 2008, at 8:45 AM, Christian Schmitz wrote:
> Alfred Van Hoek <[EMAIL PROTECTED]> wrote:
>
>> REALnewInstance does not provide a valid instance anymore, and this
>> had to be replaced with
>>
>> REALnewInstanceWithClass(REALGetClassRef("");
>
> REALnewInstance(char*) seems to work for me if the user has this class
> in their code, too.
>
> So things like
>
> dim c as CFStringMBS = NewCFStringMBS("Hello")
>
> work, because CFStringMBS is referenced.
>
>> Then, the plugin still does not work, it raises a NilObjectException
>> in the Event Loop when clicking on the control or pressing a key when
>> the control has the focus, and the Globals pane of the REALbasic IDE
>> shows " Modules(3) " but only lists "Encodings" and "Runtime".
>
> I have plugins raising NilObjectExceptions if REALnewInstance is
> called
> with an unknown class name. (not used in the application source)
Thanks, but to recapitulate:
We know that REALnewInstance will only work if REALbasic has not
stripped out classes. We are not using REALnewInstance, but use
REALnewInstanceWithClass and we test the outcome for possible invalid
instances. All instances created:
Canvases,
Scrollbars,
Toolbars,
Timers,
MenuItems,
ContextualMenus,
and,
intrinsic classes belonging to this plugin
are valid,
and the creation of cursor instances using the IBeamCursor,
ArrowCursor global methods,
are valid two.
The plugin instance is correctly created, is up and running,
responding, but any interaction by the mouse or the keyboard raises a
NIlObjectException, and we don't know from where. The plugin also
defines a Module, and we wonder if that might be the culprit because
the Debugger sees 3 modules but lists only two?
Anyone?
Alfred
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>