Microsoft KB Archive/156864

= FIX: Debugger Hangs Expanding TreeView in Debug Watch Window =

Article ID: 156864

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q156864



SYMPTOMS
Expanding the \Objects\Nodes section of a TreeView Control object in the Watch Window of the debugger causes Visual FoxPro for Windows to freeze.



CAUSE
The problem is with the TreeView control and not the debugger.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 6.0.



Steps to Reproduce Problem
 Create a Form and add a TreeView Control to it as following:  Choose OLE Container Control in the Form Controls toolbar and then click the Form. When the Insert Object dialog comes up, select the Insert Control option and then select the TreeView Control from the Control Type list. Click OK to return to the Form Designer.   Add a Command button to the form with the following code in the Click event: USE HOME+"samples\data\customer" SELECT customer oNodes = THISFORM.oleControl1.Nodes oNodes.CLEAR SCAN oNodes.ADD(,1,ALLTRIM(cust_id),ALLTRIM(company),0) ENDSCAN  Run the Form. Click on the Command button to populate the TreeView object.</li>  Open the debugger and enter the following in the Watch Window, and then press the Enter key: _SCREEN.ACTIVEFORM.OleControl1 </li> In the Watch window, expand the "SCREEN.ACTIVEFORM.OleControl1" watch expression.</li> Expand the Objects section of the TreeView OleControl.</li> Expand the Nodes section of the Objects section.</li></ol>

At this point, Visual FoxPro for Windows will freeze and you will not be able to perform any functions from within Visual FoxPro for Windows or the Debugger window.

Additional query words: kbvfp600fix

Keywords: kbbug kbfix kbinterop KB156864

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.