ERR: Picture Too Big, Corrupt, or Wrong Format

Last reviewed: April 29, 1996
Article ID: Q100563
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x

SYMPTOMS

The error message "Picture too big, corrupt, or wrong format" occurs when you try to insert a picture or .BMP file in a screen or when you are using an @ ... SAY command.

CAUSE

This error is caused by not having enough memory available in the user memory pool.

RESOLUTION

In order to use .BMP files that are 1024 x 768 and 256 colors or larger, you must set the MEMLIMIT minimum to 3072 (MEMLIMIT=90,3072,4096). For resolutions below 1024 x 768, you should have the MEMLIMIT minimum set to 2048 (MEMLIMIT=90,2048,4096). These minimum limits will vary from picture to picture.

NOTE: This error message does not occur in Visual FoxPro, which does not use the MEMLIMIT setting.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Remove the MEMLIMIT line in your CONFIG.FPW file and restart FoxPro.

  2. Do one of the following:

    - At the Command window, type:

            @ <row,column> SAY '<File>' BITMAP
    
         For example, type:
    
            @ 2,2 SAY 'c:\bmp\picture.bmp' BITMAP
    
         The error message will appear.
    
         -or-
    
       - Open a new screen. From the Screen menu, choose Layout. Under
         Options, choose Color. Under Background, choose Wallpaper. Select
         a high-resolution .BMP file. The error message will appear.
    


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a errmsg err
msg
KBCategory: kbenv kberrmsg
KBSubcategory: FxenvConfigfp


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.