From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: mysql , gnade and function hanging
Date: Wed, 30 Jun 2010 02:00:37 -0700 (PDT)
Date: 2010-06-30T02:00:37-07:00 [thread overview]
Message-ID: <676ab063-b5d5-41d7-beb9-73fec726c834@x27g2000yqb.googlegroups.com> (raw)
In-Reply-To: 9d22007e-b11c-4527-afb5-ae429aeb3f05@c10g2000yqi.googlegroups.com
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.
next prev parent reply other threads:[~2010-06-30 9:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 8:34 mysql , gnade and function hanging tonyg
2010-06-30 9:00 ` Ludovic Brenta [this message]
2010-06-30 9:03 ` tonyg
2010-06-30 9:23 ` Ludovic Brenta
2010-06-30 9:29 ` tonyg
2010-06-30 9:40 ` tonyg
2010-06-30 12:20 ` Ludovic Brenta
2010-06-30 12:53 ` tonyg
2010-07-01 9:44 ` Ludovic Brenta
2010-07-01 10:19 ` tonyg
2010-07-01 13:38 ` J-P. Rosen
2010-07-02 8:45 ` tonyg
[not found] ` <zOmdnev0COPcfLPRnZ2dnUVZ_hMAAAAA@earthlink.com>
2010-07-03 10:07 ` Dmitry A. Kazakov
2010-07-05 9:18 ` tonyg
2010-07-01 11:38 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox