BUG: Selecting Invisible Tab Can Cause GPF with SSTab Control

Last reviewed: November 19, 1996
Article ID: Q149328
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

With the SSTab control, switching to a tab that has been previously made invisible can cause application errors or GPFs. In testing these, exceptions were raised in both TABCTL16.OCX and TABCTL32.OCX at these addresses:

   TABCTL16.OCX   0001:00004D88
   TABCTL32.OCX   0137:0578B4E5

This problem may also manifest itself at other addresses on different configurations.

STATUS

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

MORE INFORMATION

Steps to Reproduce

  1. Start Visual Basic 4.0. Form1 is created by default.

  2. Add a single SSTab control to the form.

  3. Add this code to the Form_Load event of Form1:

       Private Sub Form_Load()
          SSTab1.TabVisible(0) = False
          SSTab1.Tab = 0
       End Sub
    
    

  4. Press F5 or select Start from the Run menu to run the application. An application error or GPF will occur before the form finishes loading. This problem also occurs if an EXE is made and run.


KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus
Additional reference words: 4.00 vb4win vb4all general protection fault
gp-f



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