BUG: Desaware Animated Button Gives General Protection Fault

Last reviewed: April 26, 1996
Article ID: Q150205
The information in this article applies to:
  • Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit only, for Windows, version 4.0

SYMPTOMS

Setting the CCBFileLoad property or the CCBFileSave property of the Desaware Animated control to an empty string causes a General Protection Fault in the 16-bit version of Microsoft Visual Basic .

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

Do not set the CCBFileLoad or CCBFileSave property to an empty string, because that is an invalid use of this property and has no meaning.

MORE INFORMATION

This problem is only exhibited in the 16-bit version of Microsoft Visual Basic. In the 32-bit version, the control correctly gives an Error message if CCBFileLoad or CCBFileSave are set to an empty string.

Steps to Reproduce Problem

  1. Start a new project in Visual Basic. Form1 is created by default. If the Desaware Animated Button is not in the Toolbox, from the Tools menu, select Custom Controls. Place the control onto Form1.

  2. In the Form_Load event for Form1, place the following code:

          Private Sub Form_Load()
    
    Dim s As String AniPushButton1.CCBfileLoad = s
       End Sub
    
    

  3. Run the project by pressing F5. A General Protection Fault appears as the Form is loaded.

In one test, the message after the steps above was:

   "VB caused a General Protection Fault in module ANIBTN16.OCX at
   0002:A20F. Choose Close. VB will close."


Additional reference words: 4.00 vb4win vb416
KBCategory: kbusage kbbuglist
KBSubcategory: PrgCtrls



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: April 26, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.