Page 1 of 1

IBCConnection raising error with invalid paths/Server

Posted: Wed 20 Mar 2013 11:40
by josecarlos
I am having this issue, when I am developing my app, sometimes I am connected to the database, so I need to put on the ibcconnetion properties that I have in my datamodule, my database and FB lib folder and the server name.

But, if I forgot those properties with my paths or server name and send the application to a customer, my application raises an exception because the folders or computer name doesn't exists. I allways set the properties, connected := False and leave the keepdesignconnected := True.

Of course when I generate my app the database isn't connected and the first action is load the customer parameters from a ini file and after that try to connect.

This is an old issue, I usually take care to clean all ibcconection before send to the customer, but sometimes I forget and I have this issue.

Any idea about this?

Thanks,

José Carlos.

Re: IBCConnection raising error with invalid paths/Server

Posted: Wed 20 Mar 2013 12:29
by josecarlos
I will answer my own question, I just set keepdesignconnected := false.

So I can use the connection on design time and I will not have problem when I deploy my app.

Re: IBCConnection raising error with invalid paths/Server

Posted: Wed 20 Mar 2013 12:35
by AndreyZ
You found the correct solution. If any other questions come up, please contact us.