From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c74f051eab6a7903 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-06 06:20:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!easynet-quince!easynet.net!teaser.fr!enst.fr!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: Gnat/windows specific, exception glich Date: Thu, 6 Feb 2003 09:20:01 -0500 Organization: ENST, France Message-ID: References: Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1044541211 38902 137.194.161.2 (6 Feb 2003 14:20:11 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 6 Feb 2003 14:20:11 +0000 (UTC) To: "comp.lang.ada mail to news gateway" Return-Path: X-pair-Authenticated: 64.144.3.99 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:33836 Date: 2003-02-06T09:20:01-05:00 Why are you not using COM (http://www.adapower.com/gnatcom)? Have the plugins written as LocalServers and they will each be in their own process protecting yours. If that is not possible, perhaps you can divide your own app up with part as a LocalServer COM object (or use Ada distributed Annex) for that part which interfaces then to DLLs or much preferably in almost (if not all) cases to Inproc COM objects. You then also offer freedom to implement your plugins in any language (even Java Script :-) David Botton ----- Original Message ----- From: "Jano" <402450@cepsz.unizar.es> Newsgroups: comp.lang.ada To: Sent: Thursday, February 06, 2003 8:51 AM Subject: Gnat/windows specific, exception glich > Hello, > > I have a curious problem. I'm developing an app using Gnat that uses > several DLLs also built with Gnat. The problem is: > > I have several exception handlers at the various levels in the main > procedure. However, when an exception is raised *inside* some proc > imported from the DLLs, the app aborts and prints the exception in the > console. I suspect that's caused because each DLL has its own runtime, > as stated in the user guide. > > That's somewhat puzzling because there is only one thread/task in > execution, so I would expect that any exception would be catched by the > handler in the main procedure. > > The burden that implies is that to prevent program abortion I must place > a general exception handler in *each* exported function in the DLLs. Bad > enough, I don't want the security model to depend on proper > implementation of the DLLs. Currently, I have no idea on how to prevent > at all abortion caused by some arbitrary DLL. > > The DLLs are part of a plugin system. I can't afford to have total > failure because a DLL is incorrectly developed. > > Any ideas? Am I doomed? > > -- > ------------------------- > Jano > 402450[at]cepsz.unizar.es > ------------------------- > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada