FIX: Invalid Page Fault When Deleting Nodes in TreeView Control (178495)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q178495 SYMPTOMS
While attempting to delete nodes from a TreeView control, you receive an
Invalid Page Fault and your Visual Basic application is terminated.
CAUSE
This problem may occur when the user clicks on the TreeView control and
this action causes an event procedure to run that attempts to delete nodes
from the TreeView before the TreeView gets the focus.
RESOLUTION
To correct this problem, call the DoEvents function in the MouseDown event
of the TreeView Control. For example:
Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, _
x As Single, y As Single)
DoEvents
End Sub 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 Basic 6.0.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbAPI kbBug kbControl kbfix kbVBp600fix KB178495 |
---|
|