realbasic-plugins
[Top] [All Lists]

Re: Problem with catching exception thrown from plugin

To: "REALbasic Plugins" <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Problem with catching exception thrown from plugin
From: Thomas Tempelmann <listuser at tempel dot org>
Date: Fri, 20 Jan 2006 11:54:20 +0100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
a.zatsepin wrote:

>I've got a problem with catching exception thrown from plugin.
>C++ code is:
>
>REALobject Exception = REALnewInstance("NilObjectException");
>REALRaiseException(Exception);

Are you aware that you need to return from your C routine normally
right after calling REALRaiseException? That's because this call
does not actually raise and change control of flow, but only sets
up some internal flags that'll be checked once control gets back
to the caller.

Also, take a look at my "Plugin Starter", it contains working
exception raising code.

see here: www.tempel.org/rb/

Thomas
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>