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

Last reviewed: October 20, 1997
Article 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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.