Forking wiht zvterm
- From: Hilaire Fernandes <hilaire ofset org>
- To: gnome-devel-list gnome org
- Subject: Forking wiht zvterm
- Date: Mon, 31 Jul 2000 02:09:52 +0200 (CEST)
Hi,
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
ones.
The code fragment to produce that:
----------8<--------------------
GladeXML *xml;
GtkWidget *hpaned, *term;
char* argvv[]={"/usr/bin/python", "-i", "" };
bindtextdomain(PACKAGE, GNOMELOCALEDIR);
textdomain(PACKAGE);
setenv ("TERM", "xterm", 1);
gnome_init (PACKAGE, VERSION, argc, args);
glade_gnome_init ();
xml = glade_xml_new ("gulliver.glade", 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 ();
----------8<--------------------
Any idea what's wrong ?
Hilaire
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]