Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leaving database files open
Message
From
14/01/1997 10:22:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017292
Message ID:
00017305
Views:
64
>What is the best way to leave database files open during the entire time your program runs?
>
>I currently am using two database files and I'm running into stacking errors because the files open several times but do not close even though I use close all in the exit commands of forms.
>
>I have read that it is better to leave the files sit open while the program is running, how can I do this without running into a conflict while switching forms constantly?

As Edward mentioned, you should do a trace to see why the table are not closed at the end of a form.

For permanent tables, you might want to open them in the default data session in your application setup. Then, when you need them, you can save the current data session id and switch to the default data session.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform