From: Patrik Sundberg Date: 2002-03-24T07:24:10+09:00 Subject: Re: ruby-gtk fatal error On Sun, Mar 24, 2002 at 06:19:50AM +0900, Mark Slagell wrote: > Patrik Sundberg wrote: > > >hi, > > > >I am writing an application using gtk,threads and sockets. When my > >application > >has performed any thread- and socket operations I alwats get this on stderr > >when closing the application (using exit(0)): > >Gdk-ERROR **: Fatal IO error 9 (Bad file descriptor) on X server :0.0. > > > >When this occurs my window closes but control isn't returned to the shell, > >instead the process starts some infinte loop consuming lots of CPU. > > > >Does anyone know what this could be? > > > >I use latest stable ruby snapshot and ruby-gnome 0.27 under FreeBSD 4.5. > > > Patrik, I'd like to see a (fairly small) script that exhibits this behavior. I can't seem to come up with a small script exhibiting this behaviour.. My application uses libglade and is about 600 lines of code. I tried adding the code which seems to make my app break to helloworld.rb but it doesn't behave similair.. Would you like to see the code which do show the problem even though it is a bit larger? -- ---------------------------------------------------------------------------. Patrik Sundberg Address: Rydsv�gen 100C, 584 31 Link�ping, Sweden | Email: ps@raditex.se || ps@radiac.mine.nu | Phone: +46 13 178567 || +46 707 602240 | .---> Applied Physics and Electrical Engineering student | |-----> Master of Science in Business Administration and Economics student | |-------> UNIX/Programming consultant | `--------------------------------------------------------------------------'