Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem to recreate a class
Message
From
29/06/2002 04:46:56
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00673182
Message ID:
00673592
Views:
16
Hi Jim,
thank you for your answer.

To edit the classlib works will (o.k. the object is released at this time). all the information is changed and stored fine in the vcx file.
My problem is to an instance with NEWOBJECT() or the likes.

It looks like that there is some kind of internal pointer to the records in the classlib that failed if the class information is saved (what will cause to chang the recno() of the class in the vcx).
A RELASE ALL will bring it back to work but that will release all vars as well ...

I've tried CLEAR CLASS .. what should unload the class from memory (if all instances are released) but this changes nothing.
AFAIK, all information should be cleared with CLEAR CLASS and CLEAR CLASSLIB (if no instance of this class(lib) remains in memory).

To close / open the programm works for shure, but the idea was to test a class without this.
Sometimes the settings to start a special class are more than complex and I spend more time on setting this information then
testing the class in an try and error approach.


Agnes


>Agnes,
>
>You may not edit a classlib that is currently loaded into memory. When you issue the NewObject() call the classlib ius loaded into memory and it remains loaded until the program does a clear program.
>
>Your best approach is to end the app, in the comand window type CLEAR ALL, then try editing the classlib.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform