-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 4.6.3, 4.7.4, 4.8.0
-
Fix Version/s: 4.8.6
-
Component/s: Widgets: Widgets and Dialogs
-
Labels:None
-
Environment:Windows XP, Windows Vista, Windows 7
-
Commits:871c2fbc5192836cc2918a760aec4d4c680fd8c0
This is a duplicate of QTBUG-7801, but that bug was closed due to lack of activity.
A crash will occur in QWidgetPrivate::unregisterOleDnd (\src\gui\kernel\qwidget_win.cpp) when the function attempts to call CoLockObjectExternal(dropTarget, false, true) if the dropTarget object's reference count was decremented to zero by the dropTarget->Release() call at the beginning of the function.
I haven't been able to create a small project that can repro this issue, but I have attached a patch which fixes the problem for our project.
- relates to
-
QTBUG-47737 Crash in QWindowsWindow::setDropSiteEnabled
-
- Closed
-
- replaces
-
QTBUG-7801 QWidgetPrivate::unregisterOleDnd may delete the dropTarget without setting the pointer to null leading to a crash
-
- Closed
-