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-Thread: 103376,fc3719e6afe93cd7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!x27g2000yqb.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: mysql , gnade and function hanging Date: Wed, 30 Jun 2010 02:00:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <676ab063-b5d5-41d7-beb9-73fec726c834@x27g2000yqb.googlegroups.com> References: <9d22007e-b11c-4527-afb5-ae429aeb3f05@c10g2000yqi.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1277888437 27809 127.0.0.1 (30 Jun 2010 09:00:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 30 Jun 2010 09:00:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x27g2000yqb.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12027 Date: 2010-06-30T02:00:37-07:00 List-Id: tonyg wrote on comp.lang.ada: > I am calling this gnade function in the mysql package to get some > debug info > > Put_Line(To_String(String_Field (TheDatabase, TheHeaterQuery, 1))); > > it unfortunately hangs though and the task stops > > I am thinking perhaps the whole task has either hung or terminated > without telling me. > > Would gnat tell me if this task had crashed? If you actually run the Put_Line in a task (with the Ada keyword "task") then the language rules say that any exceptions will silently cause the task to terminate. You should add an exception handler, log the exception and decide whether or not to terminate the task. You can also run your program in the debugger. -- Ludovic Brenta.