That's the problem with me. I already tried but couldn't reproduce it.
Cetin
>Yes, it makes no difference. Try it yourself - it will only take a minute to reproduce.
>
>The problem is that NEWOBJECT() does an implicit SET CLASSLIB TO "c:\program files\microsoft visual studio\vfp98\testgfp.vcx" and before it has a chance to reset, SET("CLASSLIB") returns the same to .cSetClassLib and SET CLASSLIB TO fails in the Init().
>
>It works fine the first time, but without CLEAR ALL, an Invalid Page Fault occurs the second time the object is instantiated - corrupt cache?
>
>While at first glance this seems like one of those
one-in-a-million cases, it could create problems with complex objects that instantiate other objects (in the Init()) which, in turn, attempt to use the SET CLASSLIB Command or possibly NEWOBJECT().
>
>