Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TABLES OF VIEW NOT RELEASED, DE BUGS?
Message
From
10/12/1997 09:20:17
 
 
To
10/12/1997 07:29:13
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00064917
Message ID:
00064952
Views:
35
>>>When using default data-session,
>>>all under-laying tables of an updatetable view (seleced in DE)
>>>are not released atutomatically with the view when form is closed.
>>>
>>>Is this one of the DE bugs?
>>>(Note that the tables are not opened before opening the view.)
>>>
>>>How do i overcome it?
>>>
>>>Thks.
>>>
>>>Han Wah
>>Han Wah,
>>
>>This is by design. The tables for any sql select statement are left open and always have been. If you want them closed you must close them yourself.
>
>Any tips on how to close all the tables open by the view on form release?

Unless your app design prohibits it, the easiest way (IMHO) is to use private datasessions. A cursor cannot stay open if the datasession it resided in no longer exists (which is what happens when a form witha private datasession is destroyed).
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform