Microsoft KB Archive/100563

From BetaArchive Wiki

ERR: Picture Too Big, Corrupt, or Wrong Format

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 query words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a errmsg err msg

Keywords          : kberrmsg FxenvConfigfp 
Version           : 2.5x 2.6x
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: August 13, 1999
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.