IBCConnection raising error with invalid paths/Server

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

IBCConnection raising error with invalid paths/Server

Post by josecarlos » Wed 20 Mar 2013 11:40

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.

josecarlos
Posts: 36
Joined: Sat 30 Jul 2011 18:35
Location: Brazil
Contact:

Re: IBCConnection raising error with invalid paths/Server

Post by josecarlos » Wed 20 Mar 2013 12:29

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.

AndreyZ

Re: IBCConnection raising error with invalid paths/Server

Post by AndreyZ » Wed 20 Mar 2013 12:35

You found the correct solution. If any other questions come up, please contact us.

Post Reply