Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove classes from memory?
Message
From
09/02/2011 03:16:55
 
 
To
08/02/2011 22:34:18
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:
01499322
Views:
74
That is 'normal' behaviour

Once the classes have been used, ie instantiated, vfp keeps the (compiled) definition in memory. When you try to edit them, it asks whether it can destroy the definition of the classes in memory

It's similar to 'set procedure to something', and then start editing something.prg. You'll see in the status bar: procedure file something.fxp closed ( ie something.prg is no longer in set('procedure')


ps: When removing the classes from memory, all objects of that class - if any - get destroyed prior to removing the class' definition from memory

pps: when you have instantiated classes that are defined in a prg and you edit the prg, the sequence is
- procedure file ... closed
- remove classes from memory ?
_____

>Dear Experts,
>
>I am testing the CA and DE classes I have made. The DE can have one or more CAs in it. In the command window, all I do is:
>
>oDE = NEWOBJECT( 'myDE', 'myVCX' )
>
>Then the CAs get created alright. The cursors show up. Fine. When I want them closed, I do:
>
>RELEASE oDE
>
>The cursors get closed, the oDE variable is gone.
>
>Whenever I go back to modify the CA class, it always shows "Remove classes from memory?"
>
>Although I just click Remove option and proceed to the Class Designer, what causes this? Dangling references (how could this possibly happen)? Is this something to worry about?
>
>Thanks
>Dennis
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform