hello, my two cents. I will use UI library's event framework to post PJSIP events to GUI main loop if I need to build a GUI for PJSUA. And then all GUI related handling and PJSUA event handling wouldn't bother each other. regards, Gang On Thu, Jun 7, 2012 at 7:11 AM, Gabriel Ortiz Lour <ortiz.admin at gmail.com> wrote: > Hi all, > > ? I'm making an GTK+ simple UA with pjsua. > > ? I know that this is not the best place to ask this question, as it appears > to be an GTK issue and not PJSIP one, but I can't find help out there... > > ? I have a call to "gtk_widget_show_all" inside the "on_incoming_call" > callback that segfaults. > > ? I have the same call in other part of my app (on mouse click event) that > show the desired dialog just fine. > > ? The debbuger point to some function inside the GTK lib > (gdk_window_set_geometry_hints ...), info that doesn't help much. > > ? If someone have any pointers i'd appreciate. > > Thanks > Gabriel > > > // GTK > GtkWidget *answerDialog; // Initialized OK at the beggining of the code, > show up OK on mouse clicks > > /* Callback called by the library upon receiving incoming call */ > static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, > pjsip_rx_data *rdata) > { > ... > ??? ??? gtk_widget_show_all(answerDialog);? // SEGFAULT here > ... > } > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >