Tobias Krais wrote:
Hi Matthias,
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:
[...]
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.
I created a little sample application. You will find it at the end of
the mail. May be a little oversized, but that is how it works here.
Hi Tobias,
I think you have found a bug which is not easy to fix. We have a
re-entrance problem that causes this crash. The menu is open and we
change the structure while it's open. This cannot work.
There only two possible solutions:
1. We have to defer the change of the menu when it's not open anymore.
2. Changing the menu when it's open is not possible. We just ignore the
call.
You can write a bug for this crash, but currently I have no workaround.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]