From: Jano <notelacreas@porfavor.no>
Subject: Problem with finalized protected object
Date: Wed, 07 Jul 2004 12:40:05 +0200
Date: 2004-07-07T12:40:05+02:00 [thread overview]
Message-ID: <2l227jF7p6vqU1@uni-berlin.de> (raw)
Gnat 3.15p, both linux/win32.
I have a program that, when ended, gives the following error:
Execution terminated by unhandled exception
Exception name: PROGRAM_ERROR
Message: Protected Object is finalized
Call stack traceback locations:
0x8ab417b 0x8ad5d4e 0x8ad5940 0x8ad5893 0x8aab4d8
The traceback gives:
0x8ab417b at ada/rts/a-except.adb:1320
0x8ad5d4e at ada/rts/s-assert.adb:46
0x8ad5940 at ada/rts/s-assert.adb:46
0x8ad5893 at ada/rts/s-assert.adb:46
0x8aab4d8 at ada/rts/s-tasdeb.adb:76
As you can see, nothing in my code.
The situation is as follows. I have several tasks. The main body does
nothing but wait for the other tasks to end. If I place a long delay in
the main body after the tasks finalize, the exception isn't raised until
the main body exits. In fact, debugging it shows that the exception
happens when adafinal is called, someplace within.
Even if the fault is in my code, isn't that some ill behavior on Gnat's
part? I would expect the program error to be raised when the finalized
object gets called, nor later. Am I right?
Thanks for any comments,
A. Mosteo.
next reply other threads:[~2004-07-07 10:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-07 10:40 Jano [this message]
2004-07-07 10:53 ` Problem with finalized protected object Duncan Sands
2004-07-07 20:27 ` Pascal Obry
2004-07-07 20:42 ` Duncan Sands
2004-07-08 12:04 ` Jano
2004-07-08 12:15 ` Jano
2004-07-08 13:29 ` Duncan Sands
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox