Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1150:Not enough memory for the file map
Message
De
29/04/2003 19:53:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00781501
Message ID:
00782959
Vues:
65
Sergey,

In the mean time, I've indeed implemented FFLUSH(). It will flush every x records. Unbuffered output has also been tried, but it was slower, as expected.

The lesson I've learned these days, is that buffering output ( including FCREATE() ) uses the whole internal memory and if that's not enough, then there will be an ERROR 1150. Meaning that there's NOT an intelligent implementation of buffering in VFP. Why on earth does VFP not do an automatic FFLUSH() itself as soon as that it discovers a potential buffer overflow?

Anyway, thanks for your time. :)

>>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.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform