FIX: FoxPro for Windows Can't Load .BIN Files Over 32K

ID: Q117710

2.50 2.50a 2.50b 2.60 WINDOWS kbenv kbprg kbfixlist kbbuglist

The information in this article applies to:

- Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS

When you are using the LOAD command with FoxPro for Windows, any .BIN file that is over 32K cannot be loaded. The error "Insufficient memory" will occur if a .BIN file is over 32K.

STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for Windows. This problem was corrected in FoxPro 2.6a for Windows.

MORE INFORMATION

The LOAD command places binary routines from disk in memory. Normally a maximum of sixteen 64K files can be loaded into memory at one time if there is enough memory available. FoxPro for Windows can only load a maximum of sixteen 32K files into memory at any one time. However, FoxPro for MS-DOS can load 64K .BIN files.

Steps to Reproduce Problem

Type the following in the Command window:

   handle=FCREATE('TEST.BIN')
   x=REPLICATE('A',32768)
   =FWRITE(handle,x,32768)
   =FCLOSE(handle)
   LOAD TEST.BIN

After the above code is run, modify the TEST.BIN file and add one character. If you try to LOAD the file, the error will occur.

Additional reference words: FoxWin buglist2.50 buglist2.50a buglist2.50b buglist2.60 2.50 2.50a 2.50b 2.60 binary fixlist2.60a KBCategory: kbenv kbprg kbfixlist kbbuglist KBSubcategory: FxenvMemory Solution Type : kbfix

Last Reviewed: October 20, 1997