Microsoft KB Archive/171816: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 50: | Line 50: | ||
<div class="errormessage"> | <div class="errormessage"> | ||
"VB5 caused an invalid page fault in module TABCTL32.OCX at 0137:212fef0b" | |||
</div> | </div> | ||
Line 61: | Line 61: | ||
<div class="errormessage"> | <div class="errormessage"> | ||
"VB5 caused an invalid page fault in module OLEAUT32.DLL at 0137:653468ec" | |||
</div> | </div> | ||
Line 72: | Line 72: | ||
<div class="errormessage"> | <div class="errormessage"> | ||
"VB5.exe Exception: Access violation (if using Windows NT or Windows 2000)" | |||
</div> | </div> | ||
Line 116: | Line 116: | ||
<ol> | <ol> | ||
<li>Start a new | <li>Start a new "Standard EXE" project in Visual Basic 5.0.</li> | ||
<li>Choose Components from the Project menu and select | <li>Choose Components from the Project menu and select "Microsoft Tabbed Dialog Control 5.0."</li> | ||
<li>Place an SSTab control on Form1.</li> | <li>Place an SSTab control on Form1.</li> | ||
<li>Add two TextBox controls (Text1, Text2) to Tab 0.</li> | <li>Add two TextBox controls (Text1, Text2) to Tab 0.</li> | ||
Line 125: | Line 125: | ||
<li>Start Notepad and open Form1.frm.</li> | <li>Start Notepad and open Form1.frm.</li> | ||
<li><p>Delete the following lines from Form1.frm:</p> | <li><p>Delete the following lines from Form1.frm:</p> | ||
<pre class="codesample"> Tab(0).Control(1)= | <pre class="codesample"> Tab(0).Control(1)= "Text2" | ||
Tab(0).Control(1).Enabled= 0 'False | Tab(0).Control(1).Enabled= 0 'False | ||
... | ... | ||
Tab(1).Control(1)= | Tab(1).Control(1)= "Text4" | ||
Tab(1).Control(1).Enabled= 0 'False | Tab(1).Control(1).Enabled= 0 'False | ||
... | ... | ||
Line 135: | Line 135: | ||
Left = 840 | Left = 840 | ||
TabIndex = 4 | TabIndex = 4 | ||
Text = | Text = "Text4" | ||
Top = 1200 | Top = 1200 | ||
Width = 2775 | Width = 2775 | ||
Line 144: | Line 144: | ||
Left = -74160 | Left = -74160 | ||
TabIndex = 2 | TabIndex = 2 | ||
Text = | Text = "Text2" | ||
Top = 1200 | Top = 1200 | ||
Width = 2055 | Width = 2055 |
Latest revision as of 11:05, 21 July 2020
Article ID: 171816
Article Last Modified on 11/18/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
This article was previously published under Q171816
SYMPTOMS
Attempting to open or save a form containing an SSTab control may cause Visual Basic to terminate with one of the following errors:
-or-
-or-
CAUSE
This problem can occur if the form (.frm file) contains incorrect information for the SSTab's child controls. This problem should only occur when the .frm file has been incorrectly edited outside of Visual Basic (such as with a text editor), or if the .frm file is otherwise corrupt.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Studio 97 Service Pack 2.
For more information on the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base:
170365 : INFO: Visual Studio 97 Service Packs - What, Where, and Why
For a list of the Visual Basic 5.0 bugs that were fixed in the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base:
171554 : INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
MORE INFORMATION
Steps to Reproduce Behavior
- Start a new "Standard EXE" project in Visual Basic 5.0.
- Choose Components from the Project menu and select "Microsoft Tabbed Dialog Control 5.0."
- Place an SSTab control on Form1.
- Add two TextBox controls (Text1, Text2) to Tab 0.
- Add two TextBox controls (Text3, Text4) to Tab 1.
- Save the project (Form1.frm and Project1.vbp).
- Exit Visual Basic.
- Start Notepad and open Form1.frm.
Delete the following lines from Form1.frm:
Tab(0).Control(1)= "Text2" Tab(0).Control(1).Enabled= 0 'False ... Tab(1).Control(1)= "Text4" Tab(1).Control(1).Enabled= 0 'False ... Begin VB.TextBox Text4 Height = 495 Left = 840 TabIndex = 4 Text = "Text4" Top = 1200 Width = 2775 End ... Begin VB.TextBox Text2 Height = 495 Left = -74160 TabIndex = 2 Text = "Text2" Top = 1200 Width = 2055 End
- Save Form1.frm and close Notepad.
- Restart Visual Basic and open Project1.vbp. Note that an error occurs.
These steps will also reproduce the problem if you create the original project in Visual Basic 4.0, edit the .frm file, then open the project in Visual Basic 5.0. In this case, the problem will occur when attempting to save the form.
Additional query words: crash gpf
Keywords: kbbug kbfix kbvbp500sp2fix kbvs97sp2fix KB171816