BUG: Using Nonstandard Icons Can Cause UAE/GP Fault/Hang

Last reviewed: June 21, 1995
Article ID: Q78380
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.0
- Microsoft Visual Basic programming system for Windows, version 1.0

SYMPTOMS

If you create an icon in other than standard .ICO format and attach that icon to a Visual Basic form, you may get an Unrecoverable Application Error (UAE) in Windows version 3.0, a General Protection (GP) fault in Windows version 3.1, or your computer may hang (stop responding) and require you to turn the computer off to get out of it.

Icons in other than standard format might include a picture of how the icon looked when minimized or pasted directly to the form.

Nonstandard icons can also cause less severe run-time errors such as "Invalid Picture." The icon will load at design time but cause problems at run-time.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Icons created with utilities other than IconWorks -- even those created with the Windows Software Development Kit (SDK) Paint utility -- can cause problems because they may not conform to the standard .ICO format.

The standard .ICO format that Visual Basic supports is a 32 by 32 pixel matrix, which is specified in the icoDIBSize field in the header of the resource file. Because icons are handled as resources, once they are incorporated into the .EXE file, they can actually corrupt the code, which can cause the computer to hang during execution or cause a UAE or GP fault.

REFERENCES

"Microsoft Windows Software Development Kit: Reference Volume 2," version 3.0, page 9-2

"Microsoft Windows Programmer's Reference," Chapter 9, Microsoft Press, 1990


Additional reference words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00
3.00
KBCategory: kbgraphic kbprg kbbuglist
KBSubcategory: APrgGrap


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: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.