Tobias Krais wrote:

> Hi Framework-ML,
> 
> I opened following thread in the API list:
> 
>>>> I created a little programm that removes a menu item from a menu and
>>>> adds another instead. In case the user tries to access the menu while
>>>> the menu update is performed my OO crashes and says:
>>>> -----%<-----
>>>> Exception in thread "main" com.sun.star.lang.DisposedException:
>>>> java.io.EOFException at
>>>> com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java)
>>>> at
>>>> com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java)
>>>> -----%<-----
> 
>>> It is probably your Java application that says the above, not OOo.  And
>>> it just means that OOo crashed and your Java application thus lost its
>>> connection to OOo.  So, to find out more about the crash, you would need
>>> to attach to OOo with a debugger.
> 
> Is this crash a bug or not? Do you need more info to give an answer?

A crash is of course a bug and from your description I think it's a bug
we should fix.

> How can I prevent the user from accessing the menus while adding /
> removing menu items with java?

Usually this shouldn't happen. I'm afraid that without a test case or at
least the relevant source code of your java program we can't do much. I
assume that one of your API calls leaves the menu in an inconsistent
state (that is resolved with one or more subsequent calls) or one of the
API calls you are using is not synchronized correctly. In the first case
we must check the involved API calls and see what can be done, in the
latter case we definitely must fix our code.

> Does following strace help you to identify the reason?

(data snipped)

Not really. Can you create and send a crash report (with your e-mail
address in the report so that I can find it in our database)?

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

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

Reply via email to