Hi,
We’ve just found a bug in the DragAndDropContainer component.
When you dragging over a component and that component is deleted or replaced (same actually) you get an access violation.
the probem is in line 288
if (currentlyOver != 0
&& currentlyOver->isInterestedInDragSource (dragDescLocal, source))
currentlyOver->itemDragMove (dragDescLocal, source, relX, relY);
i replaced it with this, now it seems to work fine.
if (currentlyOver != 0) {
Component* const over = dynamic_cast <Component*> (currentlyOver);
if (over != 0 &&
over->isValidComponent() &&
! (sourceWatcher->hasBeenDeleted()) &&
currentlyOver->isInterestedInDragSource (dragDescLocal, source))
{
currentlyOver->itemDragMove (dragDescLocal, source, relX, relY);
}
}