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=2.6 required=5.0 tests=BAYES_40,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,efa909d1c194c363,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-19 04:24:29 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!EU.net!sun4nl!hacktic!mbase97.xs4all.nl!gijs From: gijs@mbase97.xs4all.nl (Maarten Landzaat) Newsgroups: comp.lang.ada Message-ID: Organization: M-BASE Subject: delay duration'last: problems? Reply-To: gijs@mbase97.xs4all.nl X-Software: HERMES GUS 1.10 Rev. May 17 1993 Date: Sun, 16 Oct 1994 18:03:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 1994-10-16T18:03:54+02:00 List-Id: 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 boo; or accept baa; 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!