To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=95667


User pl changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|pl                        |mod
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Fri Oct 31 15:59:38 +0000 
2008 -------
pl->mod: I guess you're just lucky on the other platforms. The problem is that
you execute a popupmenu inside  PostItTxt::Command, the selection comes back 
and calls

#20 0x1e2b667d in SwPostIt::Delete ()
#21 0x1e2bc373 in SwPostIt::ExecuteCommand ()
#22 0x1e2bc765 in PostItTxt::Select ()
#23 0x01bcfa9d in Menu::Select ()

where SwPostIt::Delete will delete the SwPostIt window. This is while the child
popup menu window is still alive on the stackframes above. So you're deleting
the parent of a living child, which is a big nono with vcl. However there is a
way around it I think: use doLazyDelete instead of delete directly; that will
destroy the window lazily when the application main loop is reached again (that
is all stack levels left). At least that fixed the crash for me.

Please check if the lazy deletion can cause side effects (the destructor is now
called later). I could only see that the destructor removes an event listener
(which should be save), but perhaps there are other considerations. I'll attach
a patch.

---------------------------------------------------------------------
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