Take a look at
http://fox.wikis.com/wc.dll?Wiki~ManualGarbageCollection~VFP.
BTW, do you've SP1 installed?
>Hi there:
>
>We have a vfp7 application based on the mere mortal framework. In the main progam file there is this code in the last line right before it exits:
> RELEASE ALL EXTENDED
> CLEAR ALL
>
>Every once in a while it gives a C5 error both when running the program from within vfp, and the actual executable. We havent been able to isolate or pinpoint any particular scenario where it can be consistently reporduced.
>
>Also in the previous version of the application which is based on the same code minus a few enhancements, we never get this error.
>
>Any help, suggestions will be appreciated.
>
>Thanks,
>Ashish
--sb--