Re: [gnome-db] Problems with connection



2005/9/5, Arx Henrique <arxcruz gmail com>:
> Hi all,
> 
> i have this code:
> 
> int main(int argc, char **artv) {
>            GnomeProgram  *program = gnome_program_init(app_name, "0,1",
> 
> LIBGNOMEUI_MODULE, argc, argv,
> 
> GNOME_PARAM_HUMAN_READABLE_NAME,
>                                                              "GNOME
> Acessa Tool",
>                                                               NULL);
>         gda_init(app_name, "0.1", argc, argv);
>         GdaClient *client = gda_client_new();
>         tool->connection = gda_client_open_connection(client,
> "acessadbs", "admin",       "freeid",
> GDA_CONNECTION_OPTIONS_READ_ONLY);
> 
>         <<... functions to create window...>>
> 
>        gtk_main();
>        return 0;
> }
> 
> the problem is, when i cant get a connection, the program stay several
> time without show the window waiting a connection (in case, my server
> is off), how i can change this behavior ?
> 
> i use libgda2 1.2.1-2
> 

You can try to call gda_init() before gnome_program_init(), or use
gnome_db_init() instead of the two.

Vivien



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