To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=75226
                 Issue #|75226
                 Summary|Extensin Manager: startExecuteModal not properly imple
                        |mented.
               Component|framework
                 Version|OOo 2.2
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jl
             Reported by|jl





------- Additional comments from [EMAIL PROTECTED] Thu Mar  8 09:24:46 +0000 
2007 -------
The service com.sun.star.deployment.ui.PackageManagerDialog implements
com.sun.star.ui.dialogs.XAsynchronousExecutableDialog. To start the dialog one
has to call XAsynchronousExecutableDialog.startExecuteModal. This call must not
block and return immediately. The function takes an XDialogClosedListener which
is called by the implementation when the dialog has closed.

The current implementation of startExecuteModal blocks in the case when the
service needs to start VCL itself, for example, because it was used from
unopkg.exe and no office is runnging. Then the call to Application::Execute
prevents the return of startExecuteModal. When the dialog is closed and
Application::Execute returns then the XDialogClosedListener is called correctly.

When the service is created in an office process then Application::Execute is
not called and immedialted XDialogClosedListener.dialogClosed is called. This is
wrong, because the dialog is still open.

So there are actually two issues here. First, startExecuteModal may block and
second dialogClosed may be called too early.

To fix this one could move the initialization of VCL out of the service into
unopkg or consequently use the AWT.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to