realbasic-plugins
[Top] [All Lists]

Re: try/catch in a static lib

To: "REALbasic Plugins" <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: try/catch in a static lib
From: Thomas Tempelmann <listuser at tempel dot org>
Date: Sun, 24 Jul 2005 21:22:50 +0200
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Alfred Van Hoek wrote:

>If a static library implements exceptions using
>
>
>try
>{
>       ........
>}
>  catch (...)
>{
>       .......
>}
>
>and this library is used to link against a plugins implementation of 
>the static lib, will this try/catch be executed appropriately?

When used in a plugin or when used via Declares? I guess you mean plugin 
because you ask here...

>Asking this, because the official plugins SDK does not seem to support 
>try/catch blocks as I remember.

May I remind everyone that the "official" SDK does not support it because 
it does the initialization wrong? Not only me but the other one who made 
the MPW plugin adoption both insist on this (and if you'd read the 
runtime init routines you'd also learn why).

So, just do what my plugin starter does: Call the proper init routines 
and then you can catch C exception in your plugins.

Or do I misunderstand what your problem is? (I must admit that I don't 
know why you specifically point out "static lib")

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>