Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove classes from memory?
Message
De
09/02/2011 03:53:39
 
 
À
09/02/2011 03:37:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01499307
Message ID:
01499327
Vues:
70
>Show us some sample code which starts without the classes loaded, and leaves the classes in memory. Also see my message Message ID: 1496651 which is related.
>
>Most of the code relies on the following:
>
>1. oCursors property with an Access method which returns a collections of cursor objects.
>2. a GetCursorObject() which is passed an Alias parameter, with the code below:
>
>FOR EACH loCursor IN This.oCursors       && this triggers oCursors_Access() and returns collection of cursor objects
>   IF loCursor.Alias = tcAlias
>       loCursorObject = loCursor
>       EXIT
>   ENDIF
>ENDFOR
>
>You think it is not a good practice to do this?
>
>Dennis

As I wrote, you won't be able to release the object as long as you have any reference to it. In your case loCursorObject is a reference, which you must release before you will be able to release the object.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform