Re: [gnome-db] Problems with connection
- From: Vivien Malerba <vmalerba gmail com>
- To: arxcruz gmail com
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] Problems with connection
- Date: Tue, 6 Sep 2005 11:49:18 +0200
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]