Not enough memory for file map (Error 1150)


The explanation for the error isn't too helpful and even confusing as the error often shows up on computers with plenty of memory.

VFP 8.0 and earlier have a problem handling memory bigger than 512MB. It usually happens when processing large tables and manifests itself with error message "Not enough memory for file map" (error 1150). It's curable by reducing memory for VFP buffers with SYS(3050). It also helpful to call SYS(1104) after code that process large tables to clear VFP memory cache and buffers.

SYS(3050, 1, 512*1024*1024)
SYS(3050, 2, 512*1024*1024)

See Optimizing the VFP Bufffer Size for more info.