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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_FILL_THIS_FORM_SHORT autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.248.196 with SMTP id yo4mr12234888pac.29.1407496899717; Fri, 08 Aug 2014 04:21:39 -0700 (PDT) X-Received: by 10.140.23.163 with SMTP id 32mr32856qgp.8.1407496899667; Fri, 08 Aug 2014 04:21:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h18no10157374igc.0!news-out.google.com!j6ni34289qas.0!nntp.google.com!j15no5476321qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 8 Aug 2014 04:21:39 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.54.29.134; posting-account=YMGx1QoAAABkILZRyRBIC1qEtDwG1Rz1 NNTP-Posting-Host: 69.54.29.134 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <94976f36-e795-4899-91fa-219481eaaf09@googlegroups.com> Subject: ARM Compiler Locks Up on Declaration of Timing_Event From: williamjthomas7777@gmail.com Injection-Date: Fri, 08 Aug 2014 11:21:39 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:21547 Date: 2014-08-08T04:21:39-07:00 List-Id: When I take the LED demo and add this package to it and then "with" it from the main program the compiler locks up (starts to compile, never returns). I'm not using a local timer which is restricted. Please show me the error its choking on. with Ada.Real_Time.Timing_Events; use Ada.Real_Time.Timing_Events; package Timer_Pack is Event_1 : Timing_Event; R1 : constant Integer := 500; procedure Initialize; protected Timers is procedure Rate_1 ( Event : in out Timing_Event ); private State : Boolean := False; end Timers; end Timer_Pack; with LEDs; use LEDs; package body Timer_Pack is procedure Initialize is begin Set_Handler(Event1,Milliseconds(R1),Rate_1'Access); end Initialize; protected body Timers is procedure Rate_1 ( Event : in out Timing_Event ) is begin State := not State; if State then On(Green); else Off(Green); end if; Set_Handler(Event,Milliseconds(R1),Current_Event_Handler(Event)); end Rate_1; end Timers; end Timer_Pack;