BUG: EXE Crashes on Windows NT when Icon has More Than 256 colors (246307)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0, when used with:
- the operating system: Microsoft Windows NT
- Microsoft Visual FoxPro for Windows 5.0a, when used with:
- the operating system: Microsoft Windows NT
- Microsoft Visual FoxPro for Windows 6.0, when used with:
- the operating system: Microsoft Windows NT
This article was previously published under Q246307 SYMPTOMS
When building a Microsoft Visual FoxPro (VFP) executable, it is common practice to attach a custom icon to it. Usually, the custom icon contains two or more resources. This allows the icon to be displayed in various Windows views (small icons, large icons, details, and so forth). If the custom icon contains a 16x16 resource with more than 256 colors, the resulting .exe file does not run on Microsoft Windows NT 4. When the .exe file is started, it immediately exits with a memory error.
RESOLUTION
Build the 16x16 resource in the custom icon with 256 colors or fewer.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information about creating icons for use with Visual FoxPro executables, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
136044 How to Make ImagEdit Create 16X16 Icons
149589 How to Ensure that Custom Icons Show Up in Windows 95 Explorer
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbAppSetup kbBug kbCodeSnippet kbDSupport KB246307 |
---|
|