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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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-27 20:57:11 PST Path: newsfeed.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Peter Richtmyer" Newsgroups: comp.lang.ada Subject: Re: Newbie with a question Date: Fri, 27 Apr 2001 23:56:07 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: Reply-To: "Peter Richtmyer" References: <3AE9E89C.5B6909E1@lmco.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: newsabuse@supernews.com Xref: newsfeed.google.com comp.lang.ada:7010 Date: 2001-04-27T23:56:07-04:00 List-Id: "Paul Storm" wrote in message news:3AE9E89C.5B6909E1@lmco.com... > I am fairly new to Ada. I am working on a program and have created the > following excerpt. > > 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. I assume that you get the CORRECT exception that you are raising, - not some other, right? > But the message is not put into the log. Which should be done by the > Log_Error call. > I suggest: - use a debugger if possible to step through it. or - comment out the "Raise" temporarily and see if Log_Error works. Maybe the data is being buffered and never gets written. or - Take a look at your "Default_Verbosity" value (or display it) and see if the "Verbosity" is being set to some value that says "Do not put the message in the log", or - All the above until something clicks. Different people have different "styles" when debugging. Your style will help dictate which of the suggestions above (if any) you try. > The Log_Error procedure is legacy code and works fine elsewhere in the > program. > > Anyone have suggestions as to why this would be the case? Good Luck! Peter "Expect the Best...."