OS: Windows (none other OS tested yet)
When using the mitk::WeakPointer in the QmitkNodeSelectionButton (part of the org.mitk.gui.qt.common plugin). I get a an exception when I am closing the application as soon as I have called mitk::WeakPointer::Lock().
The exception is raised in WeakPointer::OnDeleteEvent()
if (m_DeleteEventCallback) m_DeleteEventCallback();
When it tries to call m_DeleteEventCallback.
If I switch the implementation to use a SmartPointer in QmitkNodeSelectionButton everything works fine. But I would like to just use a weak pointer. And maybe this problem also points to more fundamental flaw.