[gnome-db] Problems with connection



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

and sorry my english :)
        


}
-- 
"A fé remove montanas, mas eu prefiro a dinamite"



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