segfualt when creating mainwindow (GTK2)



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






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