Gdk-ERROR **: BadValue (integer parameter out of range for operation)



Hi all,

I've just written a (in fact, 3) small perl script using gtk-perl.
The main program creates a socket, then forks and executes an other
script, which then connects to the parent windows' socket (using
gtk::plug).

But I have a big problem: i get this error, when $socket->show; is
executed (in the parent):
Gdk-ERROR **: BadValue (integer parameter out of range for operation)
  serial 1503 error_code 2 request_code 2 minor_code 0

The serial number always changes, but the other values are constant.
If i start the parent script with the --sync parameter, the problem
usually comes up at the second invocation of this sub:
        $socket->destroy if (defined $socket);
        $socket = new Gtk::Socket;
        $main_vbox -> add ( $socket );
#        $socket->realize; #this is just a try if it helps (it doesn't)
        $socket->show; # this line dies

Can anyone give me a clue what's going on?

Any help appreciated,
-- 
Balazs Pozsar.




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