Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Unknown Datasession
Message
 
 
À
03/10/2007 10:36:53
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 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01258161
Message ID:
01258228
Vues:
17
>>>Thanks. Can you just explain what you mean by "out of scope"? We're talking of tables and/or cursors opened/created in a private DS. What scope? The DS loses its name, not one of the objects therein. I don't quite follow.
>>>
>>>Oh, and is the situation dangerous?
>>
>>Terry,
>>
>>The objects are also created in particular datasession. Whe you call methods of an object it switches to datasession it was created in and switches datasession back when finishes. The DS cannot be released if there're still exist objects created in the DS. Those objects will never be released until application finishes. It could cause memory leak and even crashes. You have to do proper cleanup in your forms. Check also http://fox.wikis.com/wc.dll?Wiki~ManualGarbageCollection
>
>Thanks Sergey.
>
>Still I'm coming up at this expression "objects created". Do you mean a cursor, or fields entered in on a form, or what?
>
>And calling the methods of an object in the datasession it was created in????? Sorry, I don't understand.

Objects - instances of classes are created using CREATEOBJECT, NEWOBJECT, ADDOBJECT, etc.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform