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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cffdfe36d5691052 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-28 11:10:59 PST Path: newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3AEB07A8.62A218D1@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie with a question References: <3AE9E89C.5B6909E1@lmco.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 28 Apr 2001 18:10:58 GMT NNTP-Posting-Host: 63.178.182.39 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 988481458 63.178.182.39 (Sat, 28 Apr 2001 11:10:58 PDT) NNTP-Posting-Date: Sat, 28 Apr 2001 11:10:58 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sat, 28 Apr 2001 11:09:31 PDT (newsmaster1.prod.itd.earthlink.net) Xref: newsfeed.google.com comp.lang.ada:7022 Date: 2001-04-28T18:10:58+00:00 List-Id: Paul Storm wrote: > > if ( Type_Is_Buffer and not Buffer_Found ) then > > Log_Error > ( > Source => Source, > Message => "Put message here about missing buffer > size" , > Verbosity => Default_Verbosity > ) ; > > raise Data_Point_Buffer_Size_Needed_Error ; > > end if; > > > > If this section of code runs the exception is raised and execution > abends. > But the message is not put into the log. Which should be done by the > Log_Error call. > > The Log_Error procedure is legacy code and works fine elsewhere in the > program. Program termination due to an unhandled exception is not really abnormal. The Ada runtime should terminate the program normally when an unhandled exception is raised. However, what that means differs on different systems. On many desktop and workstation systems, the runtime will close any open files before terminating, but on some real-time systems this won't happen. Possibly writing to the log is buffered and the buffer is not being written before the program terminates. You can test this by handling the exception at the top level and closing the log file before reraising the exception, or by closing the log file before raising the exception. It's also possible that your verbosity level results in the message not being put in the log. -- Jeff Carter "You brightly-colored, mealy-templed, cranberry-smelling, electric donkey-bottom biters." Monty Python & the Holy Grail