Re: segfualt when creating mainwindow (GTK2)
- From: Thijs Assies <thijs_a gmx net>
- To: Harring Figueiredo <harringf yahoo com>
- Cc: GTK -app-devel <gtk-app-devel-list gnome org>
- Subject: Re: segfualt when creating mainwindow (GTK2)
- Date: Sat, 09 Nov 2002 11:33:54 +0100
Harring Figueiredo wrote:
--- Thijs Assies <thijs_a gmx net> wrote:
Hi, im porting my program to GTK2, and when i start it, it chrashes. gdb
tells me it is in this line:
mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
whith mainwindow:
GtkWidget *mainwindow;
i dont know what could be wrong. When it compiled it sais:
got_topics.c: In function `main':
got_topics.c:69: warning: passing arg 2 of `CORBA_ORB_init' from
incompatible pointer type
rule 69 is:
o = CORBA_ORB_init(0, "hottopic", NULL,&ev);
whith o and ev:
CORBA_ORB o;
CORBA_Environment ev;
does anyone have an idea?
thx
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
This is not a GTK problem -- It is a ORBit initialisation problem
o = CORBA_ORB_init(0, "orbit-local-orb", NULL,&ev);
Try initializing it with:
orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
I changed it, and the poroblem isnt solved, this is the stacktrace:
#0 0x405441e0 in _gdk_xsettings_client_get_setting () from
/usr/lib/libgdk-x11-2.0.so.0
#1 0x40532896 in gdk_setting_get () from /usr/lib/libgdk-x11-2.0.so.0
#2 0x403e776a in gtk_settings_get_default () from
/usr/lib/libgtk-x11-2.0.so.0
#3 0x4021d331 in g_object_get_property (object=0x807f590,
property_name=0x807f540 "gtk-font-name", value=0xbfffec88)
at gobject.c:539
#4 0x403e7954 in gtk_settings_get_default () from
/usr/lib/libgtk-x11-2.0.so.0
#5 0x4022dfc2 in g_cclosure_marshal_VOID__PARAM (closure=0x8074710,
return_value=0x0, n_param_values=2,
param_values=0xbffff00c, invocation_hint=0xbfffeee8,
marshal_data=0x403e7904) at gmarshal.c:531
#6 0x40219215 in g_type_class_meta_marshal (closure=0x8074710,
return_value=0x0, n_param_values=2,
param_values=0xbffff00c, invocation_hint=0xbfffeee8,
marshal_data=0x20) at gclosure.c:514
#7 0x40218e3b in g_closure_invoke (closure=0x8074710, return_value=0x0,
n_param_values=2, param_values=0xbffff00c,
invocation_hint=0xbfffeee8) at gclosure.c:437
#8 0x4022c45f in signal_emit_unlocked_R (node=0x8074768, detail=221,
instance=0x807f590, emission_return=0x0,
instance_and_params=0xbffff00c) at gsignal.c:2271
#9 0x4022b21a in g_signal_emit_valist (instance=0x807f590, signal_id=1,
detail=221, var_args=0xbffff194) at gsignal.c:2100
#10 0x4022b4c5 in g_signal_emit (instance=0x807f590, signal_id=1,
detail=221) at gsignal.c:2144
#11 0x4021a9b5 in g_object_dispatch_properties_changed
(object=0x807f590, n_pspecs=9, pspecs=0xbffff25c) at gobject.c:456
#12 0x4021a1a7 in g_object_notify_dispatcher (object=0x807f590,
n_pspecs=9, pspecs=0xbffff25c) at gobject.c:228
#13 0x4021b97c in g_object_newv (object_type=134722432, n_parameters=0,
parameters=0x0) at gobjectnotifyqueue.c:123
#14 0x4021ba28 in g_object_new_valist (object_type=134722432,
first_property_name=0x0, var_args=0xbffff37c)
at gobject.c:734
#15 0x4021b110 in g_object_new (object_type=134722432,
first_property_name=0x0) at gobject.c:588
#16 0x403e76a4 in gtk_settings_get_default () from
/usr/lib/libgtk-x11-2.0.so.0
#17 0x403eed54 in gtk_style_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x40230eb4 in g_type_create_instance (type=134702848) at gtype.c:1349
#19 0x4021bd6c in g_object_constructor (type=134702848,
n_construct_properties=0, construct_params=0x0) at gobject.c:797
#20 0x4021b452 in g_object_newv (object_type=134702848, n_parameters=0,
parameters=0x0) at gobject.c:695
#21 0x4021ba28 in g_object_new_valist (object_type=134702848,
first_property_name=0x0, var_args=0xbffff688)
at gobject.c:734
#22 0x4021b110 in g_object_new (object_type=134702848,
first_property_name=0x0) at gobject.c:588
#23 0x403ef603 in gtk_style_new () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x4046be25 in gtk_widget_get_default_style () from
/usr/lib/libgtk-x11-2.0.so.0
#25 0x40466e74 in gtk_widget_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x40230e8d in g_type_create_instance (type=134694424) at gtype.c:1343
#27 0x4021bd6c in g_object_constructor (type=134694424,
n_construct_properties=1, construct_params=0x807e2c8)
at gobject.c:797
#28 0x4021b452 in g_object_newv (object_type=134694424, n_parameters=0,
parameters=0x0) at gobject.c:695
#29 0x4021ba28 in g_object_new_valist (object_type=134694424,
first_property_name=0x0, var_args=0xbffff968)
at gobject.c:734
#30 0x4021b110 in g_object_new (object_type=134694424,
first_property_name=0x0) at gobject.c:588
---Type <return> to continue, or q <return> to quit---
#31 0x40461650 in gtk_type_new () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x4046fe7f in gtk_window_new () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x0804d920 in build_mainwindow () at mainwindow.c:55
#34 0x0804d8f6 in main (argc=1, argv=0xbffffab4) at got_topics.c:86
mainwindow.c:55 is: mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
still that line!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]