Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot modify a class that is in use
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00290587
Message ID:
00290727
Views:
25
>>Roi- as far as I can tell, this behavior stems from VFP holding a class definition in memory, and there is nothing we can do about it except CLEAR ALL or CLEAR CLASS.
>
>Hi Erik,
>
>In that case will I have any problems in the application as far as memory bloat? That's mostly what is concerning me. I can type clear all after running the from when I need to edit the class (PITA though), but if it won't affect anything other than that I can live with it.
>
>thanks.

If there is an instance of a class in memory the class lib definitely cannot be edited. However, I am sure I have seen instances where even when all classes were cleared, the lib was still not available.

Regardless of whether I'm wrong or not, what I've found useful is to set on a small PRG with CLOSE ALL / CLEAR ALL / RELEASE ALL / CLEAR and then set function key to call it in my VFP startup program.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform