Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4187816

Visual Basic hangs when modal dialog is created during an event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1
    • deploy
    • x86
    • windows_nt



      Name: mf23781 Date: 11/06/98


      There is a testcase available a Java Bean MyButton.class.

      Here is the text from the readme.txt in the test case :-
          MyButton is just a button that fires a MessageEvent
          to a MessageListener via the showMessageBox(MessageEvent e)
          method.

          ReceiveEvent implements MessageListener and puts up
          a dialog with the message in MessageEvent when it gets
          the event from showMessageBox.

          This works wonderful in the java world. You can use the
          MyButtonTest.html in appletviewer to test this. It's a
          blow and go demo, you shouldn't need to do anything but
          load the html file unless I screwed up something.

          HERE'S THE PROBLEM:

          When running this as an ActiveX control in VB5, the
          dialog will be displayed, but only half painted, and
          then VB and the dialog will hang.

          I think the problem is this: ReceiveEvent.showMessageBox
          displays a modal dialog. Modal means Dialog.show doesn't
          return until the user hits OK. But the user can't hit OK
          because the dialog hangs. Is it hanging because it's locked
          out the main UI thread ?

      ======================================================================

            jdochezorcl Jerome Dochez (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: