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,3d824959ef461baa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-03 04:12:52 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail From: "Jeff C," Newsgroups: comp.lang.ada References: Subject: Re: task blocked using GNATSOCKETS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 66.31.4.164 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc01 1065179571 66.31.4.164 (Fri, 03 Oct 2003 11:12:51 GMT) NNTP-Posting-Date: Fri, 03 Oct 2003 11:12:51 GMT Organization: Comcast Online Date: Fri, 03 Oct 2003 11:12:51 GMT Xref: archiver1.google.com comp.lang.ada:146 Date: 2003-10-03T11:12:51+00:00 List-Id: "Riccardo Fulcoli" 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..