>I've been trying to crack this problem for a while now, with no luck.
>
>I get inconsistent occurances of the "Class Definition X is not found." error in various places within my application.
>
>It isn't a specific process that causes the error, because I can perform the same operations 10 times and it will be fine, then another time I can get the error doing the exact same operation only once.
>
>To try and help me debug this, I've got the application dumping all kinds of info when this error occurs, i.e. variables being used, etc..
>
>What I've found is, the "SET CLASSLIB" value is being "mangled" (for lack of a better word)
>
>For example I have a couple of dozen classes loaded in memory and when this error occurs, the classes in "SET CLASSLIB" have the wrong aliases assigned to them.
>
>Some have the same alias repeated over several different classes, others appear to have aliases resembling variable names being used in the process where the error occured.
>
>Has anyone else run into this?
>
>What is the cause and how can I rectify the situation?
>
>Thanks for any input,
>
>- Aaron.
Aaron,
If VFP6 or later use NewObject() instead.
Cetin