David,
I will run some tests, but I'm almost positive it will be that the classlibs are no longer correct... However, my point is, it works x number of times, then for the x + 1 time it fails, i.e.
FOR X = 1 TO 1000
* Execute Code Containing CREATEOBJECT()
ENDFOR
* Error occurs when X = 925 (made up no.)
So it's as though the classlibs are dropping this class for some reason.
- Aaron.
>Aaron,
>
>I think you need to add some debug code to test the current classname right before the createobject call. I'm betting that the name is either invalid or your classlib path no longer contains the correct classlibs.
>
>>I have a routine which instanciates an object using the CREATEOBJECT() function.
>>
>>My problem is, when this routine is called a number of times in succession, eventually it will generate the error "Class Definition
is not found."
>>
>>This doesn't happen ALL the time, but clearly it's not just a case of "well you have typo in the class name", or "you haven't used SET CLASSLIB", because it works "for a while".
>>
>>It's as though VFP is dropping the class from memory (wild guess.)
Aaron Young
Red Wing Software, Inc.