Re: [gnome-db] libgda/libgnome questions



On Tue, 2003-08-12 at 08:04, Rodrigo Moya wrote:
> > 
> use:
> 
> const gchar *gnome_db_option_menu_get_selection (GtkOptionMenu
> *option_menu);
> 
> defined in gnome-db-util.h

Thanks for the tip.  I'll look into that.
>  
> you don't have to free it, since the druid itself frees it after calling
> your callback. So it seems that's the problem, a double g_free.

That's what I figured once after it didn't crash with the commented out
free call.  

> > I commented out and it stopped crashed but the program would just hang
> > after the gtk_widget_destroy() call.  
> > 
> hmm, no backtrace for that hang?

Oops forgot to include that.  Here it is:

(gdb) bt
#0  0x40bc02f7 in poll () from /lib/libc.so.6

The code is basically:

  check if this is first time running
  if it's the first time
     create app directory
     set default preferences
     run getting started druid

     if user selected to create new DSN
        load DSN config druid
        gtk_dialog_run 
     end if

     create connection to DSN
  end if

Then it hits the callback which just saves the datasource info and calls
gtk_widget_destroy on the dialog containing the DSN Config Druid. 
Control never returns from the callback.

If I just call gtk_widget_hide it will get rid of the dialog and the
program continues to run as expected. 

> is it compiled with -g?

Yes it is.  

-- 
Loren Bandiera, CISSP <lorenb starchamber ca>
Star Chamber Inc.





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