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 X-Google-Thread: 103376,230344565f3fdda8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-14 14:00:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!newsfeed1.telenordia.se!algonet!news01.chello.se!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: multithreading with gtkada Date: Thu, 14 Nov 2002 22:00:56 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3DD3D67A.3060302@cnam.fr> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1037311256 6194 129.241.83.78 (14 Nov 2002 22:00:56 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 14 Nov 2002 22:00:56 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:30907 Date: 2002-11-14T22:00:56+00:00 List-Id: evangeli wrote: > hi all > > it seems that gtk doesnt support multi-threading (see > http://www.faqs.org/faqs/x-faq/part7/section-15.html). > My problem is the following : > my app opens a windows, which on the show event launch a task wich makes > a long computation. The window also contains a cancel button which can > be pressed to abort this task.The problem is that i would like this task > to make X-Call, and that is apparently not possible and give me > unavoidably the following error message: > ---------------------------------------------- > Xlib: unexpected async reply (sequence 0x9fe)! > ---------------------------------------------- > i havent found any solution which doesn't use several tasks. I got similar problems with my small toy application. You can see how I did it. Perhaps it works for you: URL => http://www.pvv.org/~randhol/Ada95/Klokka/ It is a small app and I have commented the Tasking part. Regards Preben Randhol -- Preben Randhol ------------------------ http://www.pvv.org/~randhol/ -- �There are three things you can do to a woman. You can love her, suffer for her, or turn her into literature.� - Justine, by Lawrence Durrell