comp.lang.ada
 help / color / mirror / Atom feed
* DEC Ada problem
@ 1994-10-19 19:15 Maarten Landzaat
  0 siblings, 0 replies; only message in thread
From: Maarten Landzaat @ 1994-10-19 19:15 UTC (permalink / raw)


Hi,

Our current project (DEC Ada on VAX/VMS) yielded a generic timer,
which does a "delay duration'last" when there's no work to do,
or when the callback is to be called a long time ahead in the future.

More of these timers run concurrently. Each timer is one task, with
a queue of wake-up times.

Now after those 36.4 (or something) hours, we get ACCess VIOlations.
A simple put_line after the delay is not executed.

Changing duration'last to 1 hour or 24 hours does NOT present these
problems. 

The delay is in a select statement like this:

select
        accept set;
	....
or      
        accept reset;
	....
or
        delay time_to_wait;
        do_callback;
        determine(time_to_wait);  -- if queue's empty: duration'last
end select;


Can anybody tell me why the access violations may occur?

Thanks very much!
-- 
Maarten Landzaat (gijs@mbase97.xs4all.nl)
Amsterdam, Double bass, Fender Jazz Bass, Atari ST, Roland Sound Canvas.
Listen to M-BASE music!
-- 
Maarten Landzaat (gijs@mbase97.xs4all.nl)
Amsterdam, Double bass, Fender Jazz Bass, Atari ST, Roland Sound Canvas.
Listen to M-BASE music!



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-10-19 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-19 19:15 DEC Ada problem Maarten Landzaat

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