[Uml-devel] nasty problems with Umbrello
Oliver Kellogg
Oliver.Kellogg at t-online.de
Thu Oct 30 08:07:09 UTC 2003
Jonathan Riddell wrote:
> > >
> > > - deleteing a message on a sequence diagram causes it to crash, if not
> > > imediatly then as soon as anything is done to the diagram. This
> > > seems to have been the case for some time, a copy from 2003-09-20
> > > has that.
>
> Allocated to Oliver,
>
Phew, this _is_ a nasty one.
Valgrind unfortunately hasn't helped, except for giving
the vague impression that the deleted item is somehow
still present on the QCanvas, and Qt is accessing it after
the deletion.
In MessageWidget::slotMenuSelection(), there is
if (sel == ListPopupMenu::mt_Delete)
m_pView -> removeWidget(this);
and UMLView::removeWidget() does a "delete" of the UMLWidget
passed in.
A C++ question, is it safe to deconstruct the "this" object
from within a method of the own class?
Sounds risky to me...
--Oliver
More information about the umbrello-devel
mailing list