Microsoft KB Archive/94168

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

Article ID: 94168

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition

-



This article was previously published under Q94168



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 &quot;Invalid format&quot; 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 query words: buglist2.00 fixlist3.00 2.00 3.00

Keywords: kbbug kbfix KB94168

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.