Mouse Cursor Disappears When Using the CodeView Debugger
ID: Q94289
|
The information in this article applies to:
-
Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0
SYMPTOMS
The mouse cursor may disappear when you use the CodeView debugger. This
problem occurs only when you try to set a break point on a statement
that shows a modal form.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic
version 1.0 for MS-DOS. We are researching this problem and will post new
information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
The following steps reproduce the problem:
- Start VBDOS.EXE.
- Choose New Form... from the File menu (FORM1.FRM).
- In the FD.EXE environment, create a second form, FORM2.FRM. From the
File menu, choose New Form. Save the file and exit from FD.EXE.
- Place the following code in Form1's event procedure Form_Click:
Sub Form_Click ()
Form2.Show 1 ' This makes Form2 shown as Modal
End Sub
- Choose Save File As... from the File menu and save Form1 as Text,
readable by other programs.
- Choose Make Exe... from the Run menu and then select the following
options in the Additional Options section:
/O for Stand-Alone EXE File
/D Run-Time Error Checking
Emulator Math(default)
/Zi for CodeView information
Then go ahead and use the default PROJECT.EXE for the .EXE file name.
Once all four options are set, choose the Make EXE and Exit button. A
warning will appear. Ignore it and proceed to exit by pressing ALT+F4.
- Link the two .OBJ files with the /CO option at the C:\VBDOS prompt. The
/CO option prepares the program for CodeView.
Link FORM1.OBJ+FORM2.OBJ /CO; 'this results in FORM1.EXE
- Run the FORM1.EXE file in CodeView by entering the following at the
C:\VBDOS prompt:
CV FORM1.EXE
- Once in CodeView, choose Open Source... from the File menu and open the
file FORM1.FRM. Next, set a break point on this line of code:
Form2.Show 1
To set a break point, scroll down and place the cursor on line 24 (the
line with the code). Then choose Set Breakpoint... from the Data menu.
A Set Breakpoint window is displayed with five Break options. Use the
default option -- Break at Location.
- After setting the break point, press the F5 key to start the program.
Click Form1. The program stops on the breakpoint. Press the F8 key to
continue running the program. At this point, you can no longer see the
mouse cursor on the form, so it appears that CodeView has hung the
computer. Press CTRL+BREAK to exit.
If you do not save FORM1.FRM in the Text format, you will not encounter
the problem and you will not be able to view the source code in CodeView
because the form is in Binary format.
Additional query words:
VBmsdos buglist1.00 1.00
Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :
|