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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9f5633938c224117 X-Google-Attributes: gid103376,public X-Google-Thread: 10b6ac,9f5633938c224117 X-Google-Attributes: gid10b6ac,public X-Google-Thread: 11038b,9f5633938c224117 X-Google-Attributes: gid11038b,public X-Google-ArrivalTime: 2001-01-31 13:20:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!skynet.be!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.windows.x.intrinsics,comp.lang.ada,comp.windows.x.motif Subject: Re: Using Xt intrinsics with Ada? Date: Wed, 31 Jan 2001 21:07:00 GMT Organization: Deja.com Message-ID: <959upd$2mq$1@nnrp1.deja.com> References: <3A78357A.2BD8C0B1@avitech.de> <959oeu$s8g$1@nnrp1.deja.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Wed Jan 31 21:07:00 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x63.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.windows.x.intrinsics:53 comp.lang.ada:4783 comp.windows.x.motif:886 Date: 2001-01-31T21:07:00+00:00 List-Id: In article <959oeu$s8g$1@nnrp1.deja.com>, Ted Dennison wrote: > I'm missing something here. XtAppMainLoop never returns to the caller. > How exactly are you planning on getting the sockets serviced? Are you > saying that you hooked a socket servicing routine into an X event > somehow? If so, exacty how? Ahh. Can I assume that you are using XtAppAddInput to attempt to get it to process incomming data on a socket as an X input? In that case, I'd definitely try to get this working in C before Adding Ada to the mix. If you get the same error in C (most likely you will), you can remove "Ada" from your question and the newsgroups list and ask again. I don't like to put the word "Ada" anywhere near an OS library question, as lots of folks seem convinced that all OS libraries have some super-special code that scans binaries to magicly figure out what source language they were compiled from, so that they can misbehave if that language wasn't C. :-) One caveat that caught my eye in the docs for XtAppAddInput was the following: --------------------- ...you should be careful not to close the end of the socket that is waiting before exiting XtAppMainLoop(). If you do this, you will get an infinite loop, in which the callback is called repeatedly, while the Intrinsics wait for an EOF to be read. ----------------------- I wouldn't be shocked if this, or a similar problem, was the cause of your troubles. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/