BUG: Using Nonstandard Icons Can Cause UAE/GP Fault/Hang (78380)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q78380 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
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbbug KB78380 |
---|
|