Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing tables with private data session.
Message
De
26/06/2007 13:15:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01235725
Message ID:
01235735
Vues:
14
>Ok, this is going to sound dumb but I think I just figured out something after all these years.
>
>I have a normal modal form with a private data session. (form.datasession = 2) I am not opening the tables in the form's data session. The form is loaded near the top of a prg and there are a number of procedures in the prg that open files for given tasks depending on user choices.
>
>I had always assumed that any files opened this way would be closed when the form was closed. I just realized that the private data session still exists and the files are still open after the form is released. I assume that this is because I didn't open the files inside the form's data session.
>
>Am I correct?
>
>If so where is the best place (what method) to manually close everything?
>
>Thanks.

If the tables are opened in that session and session is released then tables are closed. It indicates that there is some dangling reference and your session is still alive (probably would show as "Unknown" if you check in VFP IDE.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform