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:

  1. Your program executes an uninterrupted processing loop.


  2. You click a form that does not have the focus.


  3. 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:

  1. Start VBDOS.EXE.


  2. From the File menu, choose New Form (Form1).


  3. Add a Command Button (Command1) to Form1.


  4. From the File menu in FD.EXE, choose New Form (Form2). Move Form2 so it does not completely cover Form1. Then save all changes.


  5. From the File menu in FD.EXE, choose Exit, and save all changes.


  6. 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 


  7. Add the following code to the Click event of Form1:
    
          Sub Form_Click ()
             MsgBox "Click Successful"
          End Sub 


  8. From the Run menu, choose Set Start-up File and select Form1.


  9. Run the application.


  10. Click Command1, Form2 will be displayed and have the focus.


  11. Click Form1.


  12. 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 :


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.