Re: [gtk-list] Re



On Sat, 25 Sep 1999 22:23:39 +0200 (CEST), dkampman@xs4all.nl wrote:
> I am working on a program which has to control an extern 
> synthesizer via the midi-protocol. I already made such a program 
> with GUI under the XForms Toolbox, which is working fine. Lately 
> I rewrote the program under the GTK+-1.2.2 Toolbox (Slackware 
> 4.0; Linux 2.2.6).
> 
> In my program I use a foreground (parent) process as the 
> GUI-input and in the background runs a second process generated 
> with fork().
> 
> Overmore parent and child share memory (according to W.R.Stevens
> (Advanced Programming in the UNIX Environment p.463).
> 
> This construction is working without problems under the XForms 
> Toolbox.
> 
> 
> In the GTK-version of this program I get an errorstatement
> 
> "Xlib: unexpected async reply (sequence 0x623)!"
> 
> 
> On closing the GTK-GUI I get the errorstatement:
> 
> "Gdk-ERROR **. Bad GC (invalid GC parameter) serial 3181 
> error_code 13
> 
> request_code 60 minor_code 0
> 
> aborting...
> 
> IOT trap/Abort"
> 
> 
> I find no explanation in the docs. Someone understands what is 
> happening?

The child tries to execute GTK code, which on its turn uses X calls. The X
server doesn't mind, but the parent process gets confused. There is *some*
documentation about this in the GTK FAQ.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]