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.
IBCConnection raising error with invalid paths/Server
-
josecarlos
- Posts: 36
- Joined: Sat 30 Jul 2011 18:35
- Location: Brazil
- Contact:
-
josecarlos
- Posts: 36
- Joined: Sat 30 Jul 2011 18:35
- Location: Brazil
- Contact:
Re: IBCConnection raising error with invalid paths/Server
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.
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
You found the correct solution. If any other questions come up, please contact us.