Computer Hangs When Click Form Without Focus Then CTRL+BREAK
ID: Q94262
|
The information in this article applies to:
-
Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0
SYMPTOMS
VBDOS.EXE causes your computer to hang (stop responding) when the following
events occur:
- Your program executes an uninterrupted processing loop.
- You click a form that does not have the focus.
- You press CTRL+BREAK.
To work around the problem, call Doevents() periodically from within
the loop. This problem does not occur in compiled programs.
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.
MORE INFORMATION
The following steps reproduce the problem:
- Start VBDOS.EXE.
- From the File menu, choose New Form (Form1).
- Add a Command Button (Command1) to Form1.
- From the File menu in FD.EXE, choose New Form (Form2). Move Form2 so it
does not completely cover Form1. Then save all changes.
- From the File menu in FD.EXE, choose Exit, and save all changes.
- Add the following code to the Click event procedure of Command1:
Sub Command_Click ()
Form2.Show
For i = 1 To 3000
Form2.Caption = STR$(i)
Next
'x% = Doevents() ' uncomment this line to work around the problem
End Sub
- Add the following code to the Click event of Form1:
Sub Form_Click ()
MsgBox "Click Successful"
End Sub
- From the Run menu, choose Set Start-up File and select Form1.
- Run the application.
- Click Command1, Form2 will be displayed and have the focus.
- Click Form1.
- Press CTRL+BREAK.
At this point, VBDOS.EXE causes your computer to hang (stop responding).
Additional query words:
VBmsdos buglist1.00 1.00
Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :