Forking wiht zvterm


When forking using zvterm I got error like:

Xlib: unexpected async reply (sequence 0x46c)!
Gdk-ERROR **: BadIDChoice (invalid resource ID chosen for this connection)
  serial 1160 error_code 14 request_code 53 minor_code 0
Gdk-ERROR **: BadGC (invalid GC parameter)
  serial 1163 error_code 13 request_code 56 minor_code 0
Gdk-ERROR **: BadDrawable (invalid Pixmap or Window parameter)
  serial 1164 error_code 9 request_code 70 minor_code 0

The application randomly show or not and dispay error messages as those

The code fragment to produce that:


GladeXML *xml;
GtkWidget *hpaned, *term;
char*  argvv[]={"/usr/bin/python", "-i", "" };

 bindtextdomain(PACKAGE, GNOMELOCALEDIR);  

 setenv ("TERM", "xterm", 1); 

 gnome_init (PACKAGE, VERSION, argc, args);
 glade_gnome_init ();
 xml = glade_xml_new ("", NULL);
 glade_xml_signal_autoconnect (xml);
 hpaned = glade_xml_get_widget (xml, "hpaned2");

 term = zvt_term_new_with_size (80,25);
 gtk_paned_add2 (GTK_PANED (hpaned), term);
 gtk_widget_show (term);

 if (zvt_term_forkpty (ZVT_TERM (term), 0) == -1)
     printf ("Can't fork");
     exit (1);

 execvp (argvv[0], argvv);

 gtk_main ();


Any idea what's wrong ?


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