Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disconnect CA
Message
 
To
16/01/2012 21:47:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01532958
Message ID:
01533063
Views:
31
Jerry,
if you have ONE connection to your BackEnd then, no matter how many CAs are opened you have ONE connection. Therefore you can't disconnect CA.

>yes, I use SQLDISCONNECT(0)
>
>the problem is when the client open multiple forms, one form close and all other forms are error.
>because it will close the connections not only itself, but for all the other forms as well.
>
>
>>I use a connection manager object that I built. That object is stored in my application object so I make the connection when I start my app an then I only use the one connection for the entire application. I have a SQLDISCONNECT(0) in the destroy of the connection object. All of your CAs can get the connection handle from the connection object when they are instantiated.
>>
>>>I use MySQL.
>>>close the form doesn't realease Cursor Adapter.
>>>so I will have the connections build up and reach the MySQL connection limit.
>>>
>>>
>>>
>>>
>>>>I have cursor adapter on Data Environment.
>>>>>how to release it?
>>>>>
>>>>>
>>>>>>>I'm using MySQL and Cursor Adaptor in Data Environment.
>>>>>>>how can I disconnect the CA connections when exit?
>>>>>>>if I use SQLDISCONNECT(0) it will disconnect everything, incl connections on other forms.
>>>>>>>
>>>>>>>thanks for the help
>>>>>>>
>>>>>>>regards,
>>>>>>>
>>>>>>>Jerry
>>>>>>
>>>>>>If you use ODBC connection and that connection is global for your application, there is no need to disconnect CA.
>>>>>>Just release it.
>>>>
>>>>Close the form.
>>>>Why should you release it?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform