Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove classes from memory?
Message
From
09/02/2011 03:53:39
 
 
To
09/02/2011 03:37:55
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01499307
Message ID:
01499327
Views:
69
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform