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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ee06257af909a235 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!newsfeed.freenet.de!news.albasani.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Finalization of static package variables - summary Date: Tue, 15 May 2007 19:49:48 -0500 Organization: Jacob's private Usenet server Message-ID: References: <4640f20b$1@news.upm.es> <4642493f@news.upm.es> <4644b24e$1@news.upm.es> <46461336@news.upm.es> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1179276467 9836 69.95.181.76 (16 May 2007 00:47:47 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 16 May 2007 00:47:47 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Xref: g2news1.google.com comp.lang.ada:15806 Date: 2007-05-15T19:49:48-05:00 List-Id: "Manuel Collado" wrote in message news:46461336@news.upm.es... ... > To gain the possibility of declaring modal dialogs as static package > variables, I've patched the JEWL sources to add a 'close()' procedure > for modal dialogs. As I mentioned previously, this really doesn't work: if your program has a bug and raises an unhandled exception, it will deadlock again (and probably not even tell you what happened!). You could try to put handlers all over the place, but that is an amazing pain and quite fragile. I think you either have to use JEWL as it was intended (with modal dialogs declared in subprograms; I can't think of any good reason to declare a modal dialog in a package anyway: it can't live very long, since it prevents everything else from working) or switch to a different GUI library. (I'm partial to Claw, but any of them would work.) Randy.