comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+news@pvv.org>
Subject: Re: multithreading with gtkada
Date: Thu, 14 Nov 2002 22:00:56 +0000 (UTC)
Date: 2002-11-14T22:00:56+00:00	[thread overview]
Message-ID: <slrnat877v.964.randhol+news@kiuk0152.chembio.ntnu.no> (raw)
In-Reply-To: 3DD3D67A.3060302@cnam.fr

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



      parent reply	other threads:[~2002-11-14 22:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14 16:59 multithreading with gtkada evangeli
2002-11-14 17:59 ` Warren W. Gay VE3WWG
2002-11-15 16:25   ` evangeli
2002-11-15 16:08     ` Preben Randhol
2002-11-15 16:22     ` Jean-Pierre Rosen
2002-11-14 18:41 ` David Marceau
2002-11-14 22:00 ` Preben Randhol [this message]
replies disabled

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