comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Finalization of static package variables
Date: Tue, 15 May 2007 19:36:49 -0500
Date: 2007-05-15T19:36:49-05:00	[thread overview]
Message-ID: <f2djj7$99a$1@jacob-sparre.dk> (raw)
In-Reply-To: 1178753228.648765.89390@e65g2000hsc.googlegroups.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]

"Adam Beneschan" <adam@irvine.com> wrote in message
news:1178753228.648765.89390@e65g2000hsc.googlegroups.com...
On May 9, 3:00 pm, Manuel Collado <m.coll...@lml.ls.fi.upm.es> wrote:
> Adam Beneschan escribi�:

> Well, JEWL uses tasks internally. So, who knows...

> > No, I believe that all objects, including static package variables
> > *and* including allocated objects that have not yet been deallocated,
> > are supposed to be finalized when the environment task completes.
> > 10.2(25), 7.6.1(10).
>
> The fact is that there is a significant difference in behaviour between
> variables in the main procedure and static package variables. Example:

This sounds awfully familiar to me; it's a problem that we had in Claw. The
problem you're having appears to be that the library you arer using (JEWL)
does not properly support library-level objects. We had a lot of trouble
with this in Claw, in the end we found a trick to determine when the
environment task is completing; then we have the main task forcibly
close/finalize all open windows. Otherwise, the program would go catatonic,
because the tasks would be waiting for the windows to close, but Ada says
that the tasks have to end first.

Moral: using an ancient library and an ancient compiler means that you'll
refind all of the bugs long ago worked out. Use a newer compiler, use a
library like Claw oe GWindows or even GtkAda, and you won't have these sorts
of issues...

                                     Randy.





  parent reply	other threads:[~2007-05-16  0:36 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 21:55 Finalization of static package variables Manuel Collado
2007-05-09  8:13 ` Alex R. Mosteo
2007-05-09  8:20 ` Stephen Leake
2007-05-09 15:15   ` Adam Beneschan
2007-05-09 16:01     ` Markus E Leypold
2007-05-09 22:00     ` Manuel Collado
2007-05-09 23:27       ` Adam Beneschan
2007-05-10  4:52         ` Jeffrey R. Carter
2007-05-16  0:41           ` Randy Brukardt
2007-05-10  8:16         ` Alex R. Mosteo
2007-05-16  0:36         ` Randy Brukardt [this message]
2007-05-16 14:06           ` Adam Beneschan
2007-05-16 16:47             ` Jeffrey R. Carter
2007-05-16 19:10             ` Randy Brukardt
2007-05-22  4:41               ` christoph.grein
2007-05-22  6:25                 ` tmoran
2007-05-22 22:19                   ` Randy Brukardt
2007-05-10 10:57       ` Stephen Leake
2007-05-09 22:19   ` Manuel Collado
2007-05-10  5:38     ` AW: " Grein, Christoph (Fa. ESG)
2007-05-10 10:55     ` Stephen Leake
2007-05-11 18:12       ` Manuel Collado
2007-05-11 18:26         ` Robert A Duff
2007-05-12 19:17           ` Finalization of static package variables - summary Manuel Collado
2007-05-16  0:49             ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox