[gtk-server] Re: I can't get v1.2.2 to work

  • From: Peter van Eerten <turtle@xxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Sun, 31 Oct 2004 19:21:51 +0100

This will not work since you forget to initialize GTK with gtk_init(NULL, 
NULL). Your example below delivers a segfault with me also. Can you run the GDB 
trace again with gtk_init(NULL, NULL) and gtk_window_new(0)??
>
>Will do.
>
>Actually, I tried using gdb just now:
>$ gdb --argd gtk-server stdin log
>(gdb)run
>ok
>gtk_window_new(0)
>
>Program received signal SIGSEGV, Segmentation fault.
>0x407ee323 in g_type_fundamental () from /usr/lib/libgobject-2.0.so.0
>
>(gdb) bt
>#0  0x407ee323 in g_type_fundamental () from /usr/lib/libgobject-2.0.so.0
>#1  0x407d3b22 in g_object_new () from /usr/lib/libgobject-2.0.so.0
>#2  0x406316f6 in gtk_window_new () from /usr/lib/libgtk-x11-2.0.so
>#3  0x0804a185 in Widget_Gtk ()
>#4  0x0804c004 in Call_Realize ()
>#5  0x0804c93d in main ()
>
>
>
>  
>




Other related posts: