assertion in DoNotifyWindowAboutCaptureLost in wxMSW 2.7.1

Carl Godkin cgodkin at gmail.com
Tue Oct 17 15:06:44 PDT 2006


Hi,

I'm having trouble with drag and drop now that I've upgraded to wx 2.7.1.

I get an assertion when I start to drag an item in my application.  Long ago
when I was trying to get this behavior going, Otto kindly pointed me at his
wyoFiler application where he had implemented drag & drop with a
wxTreeListCtrl, which is just what I needed.

I just downloaded the latest version of wyoFiler and built it with wxMSW 2.7.1
and that application crashes the same way when starting to drag an item.

Anyway, both applications assert when I call wxDropSource::DoDragDrop()
with this message:
..\..\src\common\wincmn.cpp(2405): assert "wxAssertFailure" failed in
DoNotifyWindowAboutCaptureLost(): window that captured the mouse
didn't process wxEVT_MOUSE_CAPTURE_LOST

I never heard of this event before and I don't have all that clear an
understanding of what I need to do in order to get drag & drop going
again in my application.

Does anyone have any suggestions?

Thanks,

carl




More information about the wx-users mailing list