>Hi,
>
>I get an error 1150 (Not enough memory for the file map) on a FPUTS() line. The file is buffered. The error happens after having processed more than 9 million records. I think it's a buffer problem. My presumption was that VFP will buffer, but will write to the file when the buffer is 'full'. Now it appears that everything is written to the buffer (in memory) and that the whole buffer isn't written to the file before the actual closure of the file.
>
>Can anyone confirm this behavior?
Hi Peter,
You may try two things:
1. Call FFLUSH() function say every 10,000 records
2. Use unbuffered output file. With Windows buffering in place it shouldn't make much difference.
--sb--