comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeff C," <nolongersafeto@userealemailsniff.com>
Subject: Re: task blocked using GNATSOCKETS
Date: Fri, 03 Oct 2003 11:12:51 GMT
Date: 2003-10-03T11:12:51+00:00	[thread overview]
Message-ID: <TQcfb.665565$YN5.519319@sccrnsc01> (raw)
In-Reply-To: bljgud$s47$1@e3k.asi.ansaldo.it


"Riccardo Fulcoli" <kk@kk.com> wrote in message
news:bljgud$s47$1@e3k.asi.ansaldo.it...
> Hi there!
>
> I've got a problem.
> In a task in wich I use gnat sockets I cannot get one exception if an
> abnormal condition is presented.
>
> In particular if another program has already a socket on a particular
> address and port that I want to use no errors messages are presented but
my
> task simply waits indefinitely.
>
> In the other hand if I use the same code in a procedure that is not a task
I
> can get the exception:
>
> "raised GNAT.SOCKETS.SOCKET_ERROR : [125] Address already in use"
>
> I'm supposing this belongs by the fact that I'm using a task.
>
> Maybe I may copile with some kind of special flag??
>
> Someone could help me?
>
> Tanks!
>
> Riccardo
>
>


Are you really sure that you are not getting the exception. Add a when
others exception handler to your
task that does a text IO.. If you have no exception handler and you get an
exception in the task, the task
will silently terminate. If you get one in "the procedure" (e.g. main
program in a program with no tasks) the program
will terminate and print the exception..





  reply	other threads:[~2003-10-03 11:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-03  9:52 task blocked using GNATSOCKETS Riccardo Fulcoli
2003-10-03 11:12 ` Jeff C, [this message]
2003-10-04  1:03 ` Craig Carey
2003-10-22  8:58   ` Craig Carey
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox