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

Problems with JavaBeans ActiveX controls Dead Lock

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1_02
    • 1.3.1
    • deploy
    • None
    • 02
    • x86
    • windows_nt
    • Verified

       Our Java Beans do not work correctly if they are packed with
      ActiveX-Packager.

      We created swing based beans with JDK 1.3 and packed them with the Sun
      ActiveX-Packager.
      Then we build ActiveX controls from the typelibraries with MSVC++ 6.0.
      Testing the controls in a MSVC++ MDI application the controls show some
      strange behavior.

      Test case

      1) unjar LoosingFocus.jar

      2) cd LostFocus\activeX

      4) Modify LFRoot.reg this way:
            - change the paths to beans.ocx to the location where
              JRE is installed
            - change the paths of loosingfocus.jar and LFRoot.tlb to
      the location where you unjared them to.

      5) Run:
               regedit LFRoot.reg
         
         to register ActiveX control.

      This will give a message that it has been registered.

      cd LostFocus\cpp\LoosingFocus\Debug

      run the exe

      LoosingFocus.exe

      This will take about two minutes to come up. You will see a window containing the java widow (Loosin1).

      Description:
      To run into dead lock create a second MDI
      Window. To do so select "Neu" from the "Datei" menu and right click on
      the first MDI's "Right click here..." area to show the popup menu. The
      LoosingFocus.exe will hang.

      Remarks:
      The dead lock occures if you try to show a JPopupMenu while a time
      consuming creation of a bridged bean is done.

            asultano Alex Sultanov
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: