FIX: GPF When Pasting 8 Bit .DIB File into Anibutton Control

Last reviewed: October 30, 1997
Article ID: Q94168
2.00 WINDOWS kbprg kbbuglist

The information in this article applies to:

- Standard Edition of Microsoft Visual Basic for Windows, version 2.0

SYMPTOMS

If you directly paste a 8 bit color .DIB picture from Paint Brush that comes with Windows, versions 3.0 or 3.1 into the AniButton.VBX control with the Standard Edition of Microsoft Visual Basic for Windows, version 2.0 you may receive a General Protection (GP) fault when using Windows, version 3.1 or an Unrecoverable Application Error (UAE) when using Windows, version 3.0. A GP fault or UAE does not occur if you load the .DIB picture through the Picture property in design mode. Instead, an "Invalid format" error is returned.

STATUS

Microsoft has confirmed this to be a problem in the Standard Edition of Microsoft Visual Basic for Windows, version 2.0. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.

MORE INFORMATION

The following steps can be used to reproduce this problem:

  1. Start Paint Brush (Pbrush.EXE) from the Windows subdirectory.

  2. Open and load a 8 bit color .DIB file into Paint Brush from the File menu.

  3. Click the upper right hand icon that looks like a pair or scissors to cut out the picture of the 8 bit color .DIB file. Cut out a copy of the picture.

  4. Select the Copy routine from the Edit menu to make a copy of the clipped area.

  5. Start VB.EXE.

  6. Select Add File... from the File menu to add the Anibutton.VBX control to the project.

  7. Place the Antibutton control on Form1.

  8. Press the F4 key to bring up the Properties Window. Select the Frame property and press the '...' button.

  9. Once the '...' button is pushed, the 'Select Frame' Window is displayed. Press the Paste key, and an UAE or GPF occurs.


Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus
Solution Type : kbfix


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: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.