BUG: Setting the Caption of a Tab Control Results in GP Fault (138525)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
This article was previously published under Q138525 SYMPTOMS
Setting the caption of the Tab control to the contents of a text box may
generate a general protection (GP) fault if the text box is empty. The GP
fault occurs in module User.exe and is usually at the address 000B:009B.
RESOLUTION
The GP fault does not occur if the caption of the control is set directly
to an empty string. For example, modify the Change event code for the Text1
control in step 5 of the "Steps to Reproduce Problem" section of this
article to this:
If Text1.Text = "" Then
Form1.SSTab1.Caption = ""
Else
Form1.SSTab1.Caption = Text1.Text
End If
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kb16bitonly kbbug kbDSupport KB138525 |
---|
|