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,a4ee0d6fecf1a79a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-07 03:07:10 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!128.39.3.168!uninett.no!ntnu.no!randhol+abuse From: randhol+abuse@pvv.org (Preben Randhol) Newsgroups: comp.lang.ada Subject: Re: GtkAda and tasking how to?. Date: Mon, 7 May 2001 10:07:10 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <2AqJ6.46$yj1.1347@news3.global-ip.net> NNTP-Posting-Host: kiuk0156.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 989230030 15721 129.241.83.82 (7 May 2001 10:07:10 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 7 May 2001 10:07:10 +0000 (UTC) User-Agent: slrn/0.9.7.0 (Linux) Xref: newsfeed.google.com comp.lang.ada:7249 Date: 2001-05-07T10:07:10+00:00 List-Id: On Mon, 7 May 2001 07:34:38 +0200, Per Sandbergs wrote: > > Thanks for the example i may end up in going this way but what i realy want > is to make the > GUI thread safe since i am deling with a server program that previos took > all commands form a socket connection aand just printet to standard output > And what i want to do is to redirect Output to the GUI and still be able to > control the GUI. Perhaps I misunderstand you, but isn't it better then to put the GUI in a separate thread so that if something goes wrong you can start up a new GUI thread when you detect that the old one has died? > But what i am getting after a while is > Gdk-ERROR **: file gdkgc-win32.c: line 875 (gdk_gc_predraw): assertion > failed: (data->xgc == NULL) > It think it os a timing/race problem since the time the program runs seem to > be random. Have you tried it on Linux? -- Preben Randhol ------------------- http://www.pvv.org/~randhol/ -- �For me, Ada95 puts back the joy in programming.�