>>>My computer (XP PRO sp2, 1 Gb RAM and 2,26 Ghz) really slows down after exiting VFP 6 and the only way to recover is to reboot.
>>>Two unrelated scenarios cause this to occur:
>>>1. One or more VFP errors since the last reboot. The computer runs progressively slower after each error. This has been occuring for years.
>>>2. A program that I am testing now packs and copies about 250 tables. Two of the tables are > 200 mb and one contains about 1.7 million records.
>>>
>>>I would rather *not* purchase a new computer with more RAM, etc at this time.
>>>
>>>All suggestions are appreciated.
>>>
>>>Thank you in advance.
>>
>>Allan,
>>
>>Sounds like a vfp memory leak
>>
>>Do you use chrtran() frequently in the program ?
>>Do you use SafeArrays which you do not destroy ?
>>Do you use api handles which do not get closed properly ? (eg internet/ftp/, ...)
>>
>>Also [ though this won't solve it ] try to set sys(3050) at the start of your main - it will make vfp less hungry for memory
>>
>>
>>=sys(3050,1, 64 * 1024 * 1024)
>>=sys(3050,2, 16 * 1024 * 1024)
>>
>In regards to scenario #2 which is one self contained program:
>No, I am not using chrtran() at all.
>I start VFP, start the program from the command window and then exit upon completion.
>It does not invoke any other programs, etc.
>Should the two lines of code be literraly at the start before any 'locals', etc?
Yes. - it will not solve your problem though
Try to delete your foxuser.* files
Gregory