BUG: Certain Icons May Cause Error with FoxPro

ID: Q246313


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0b, 5.0, 5.0a, 6.0
    on the following platforms: winnt


SYMPTOMS

Icon files (*.ICO) usually have two or more resources contained within them. Each resource can be built with a different number of colors. Viewing an icon file that has a 32x32 resource that was built with greater than 256 colors causes the Visual FoxPro (VFP) versions mentioned above to exit. This occurs when Visual FoxPro is running on Microsoft Windows NT.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

From Visual FoxPro, you can get a dialog to view an icon in a number of ways: assigning an .ico to a project, through the PICTURE property of an image control, and so forth. The easiest way to reproduce this, however, is with GETPIC().

  1. Using Impact Software's Microangelo (information available on their Web site at: http://www.impactsoft.com/muangelo/muangelo.html), or some other icon editor, create an icon. Include a 32x32 resource with more than 256 colors.


  2. Open one of the Visual FoxPro versions listed above and execute the following command from the Command window:


  3. ? GETPIC() 
  4. When the dialog box appears, locate the icon created in step 1. Select the icon and PREVIEW it (using either the preview checkbox or button).


Using Visual FoxPro 6.0 (no service pack), the following error might occur and then Visual FoxPro exits:
Fatal error: Exception code=C0000005
Using Visual FoxPro 5.0x and Visual FoxPro 6.0 SP3, the following error might occur and FoxPro exits or VFP shuts down without reporting an error:
APPLICATION ERROR. The instruction at <memory address> referenced memory at <memory address>. The memory could not be "read".
(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Trevor Hancock, Microsoft Corporation.


REFERENCES

The third-party products discussed in this article are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.

Additional query words:

Keywords : kbVFp300bbug kbVFp500abug kbVFp600bug kbXBase kbGrpFox kbDSupport
Version : WINDOWS:3.0b,5.0,5.0a,6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: November 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.