Close connection programatically BEFORE

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
[email protected]
Posts: 12
Joined: Fri 25 Sep 2015 09:28

Close connection programatically BEFORE

Post by [email protected] » Tue 23 Aug 2016 10:30

When i work i need to have my connection open (tuniconnection.connected) but not when i run the application it must not be active, it will hang the exe for my customers. How do i close the connection so it wont try to connect? When i close it in the forms "on create" event, it already to late, it will still try to connect.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Close connection programatically BEFORE

Post by ViktorV » Tue 23 Aug 2016 11:51

To solve your issue, please set the TUniConnection.Options.KeepDesignConnected property to False using Object Inspector.
Please post your questions concerning UniDAC in the corresponding topic: viewforum.php?f=28

[email protected]
Posts: 12
Joined: Fri 25 Sep 2015 09:28

Re: Close connection programatically BEFORE

Post by [email protected] » Wed 24 Aug 2016 08:06

ViktorV wrote:To solve your issue, please set the TUniConnection.Options.KeepDesignConnected property to False using Object Inspector.
Please post your questions concerning UniDAC in the corresponding topic: viewforum.php?f=28
Perfect, Thanx

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Close connection programatically BEFORE

Post by ViktorV » Thu 25 Aug 2016 11:59

It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about MyDAC.

Post Reply