Hello Jojo,
>
>I will try to remove the class from the release method of my form.
>
>I have my on shutdown procedure where i put all my cleaning code, but then without releasing first the class, I get error with
Cannot clear object that is in useThis means that you have to release the object reference that exist somewhere.
From VFP help:
Method or event code for that object is currently running.
You attempted to remove class definitions from memory with the CLEAR ALL command.
Interrupt the running code or wait until it completes before clearing memory.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer