From: "Theodore E. Dennison" <dennison@escmail.orl.mmc.com>
Subject: Re: Program_Error from library level task declaration...
Date: 1996/07/30
Date: 1996-07-30T00:00:00+00:00 [thread overview]
Message-ID: <31FE562A.237C228A@escmail.orl.mmc.com> (raw)
In-Reply-To: 4td2pg$2i9@goanna.cs.rmit.edu.au
Dale Stanbrough wrote:
> I've tried to create a library level semaphore to be used
> for screen locking. The semaphore is the standard implementation
> using a task (yes, I know a protected object would be better).
>
> The declaration is...
>
> with semaphores; use semaphores;
> package screen_lock is
>
> screen:semaphore;
>
> end screen_lock;
>
...
> However this causes a program_error. I'm at a bit of a loss as
> to how to fix this. Does anyone have any bright ideas?
It would help to see the code for "semaphores" as well. Typically,
I see program error when,
o Someone tries to rendezvous with a task that has terminated.
o The code depends on the order of package elaboration (and the
compiler guesses wrong).
o A function reaches the "end" without executing a "return"
statement.
(Note that if the "semaphore" task contains a terminate alternative,
the task may terminate once your main task terminates.)
--
T.E.D.
| Work - mailto:dennison@escmail.orl.mmc.com |
| Home - mailto:dennison@iag.net |
| URL - http://www.iag.net/~dennison |
next prev parent reply other threads:[~1996-07-30 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-27 0:00 Program_Error from library level task declaration Dale Stanbrough
1996-07-30 0:00 ` Theodore E. Dennison [this message]
1996-07-31 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox