Microsoft KB Archive/221626

= FIX: Debug/Fix In Form Shows Form Controls Toolbar in Debugger =

Article ID: 221626

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221626



SYMPTOMS
You run a form from the Form Designer with CTRL+E or the [!] toolbar button, suspend on a line of code, and the Debugger Trace window is displayed. You then select Debug, then Fix from the Debugger window menu. If the Form Controls or other form toolbars were displayed before you ran the form, they will subsequently be displayed within the Debugger window, rather than in the Visual FoxPro desktop.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior
The code below programmatically creates a form and adds code to its Activate method that intentionally causes an error. The behavior demonstrated is the same as if you carry out the steps manually:   Run the following code from a program (.PRG) file: SET RESOURCE OFF   && Ensures Form Controls toolbar is visible CLOSE ALL DELETE FILE testxx.sc? LOCAL aobj[1], xx CREATE FORM testxx NOWAIT =ASELOBJ(aobj,1) xx = aobj[1] xx.WRITEMETHOD('activate',[x=xx]) KEYBOARD 'Y' CLEAR RELEASE WINDOW 'Form Designer - testxx.scx' MODIFY FORM testxx NOWAIT KEYBOARD '{ctrl+e}'  && Run form  When the error dialog is displayed, click the Suspend button. When the Debugger appears, select Debug, then Fix from the Debugger menu bar. Look for the Form Controls toolbar in the Visual FoxPro desktop; it does not appear there. Press the ALT+TAB key combination to go back to the Debugger window.

Results:
 * 1) Form controls toolbar appears in the Debugger Window.
 * 2) This also happens with SET RESOURCE ON, and can also happen with the Layout and Color Palette toolbars if they are open before running the form, and SET RESOURCE is on.

Keywords: kbbug kbfix kbmisctools kbvs600sp3fix KB221626

-

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

© Microsoft Corporation. All rights reserved.