WinFormsComInterop
WinFormsComInterop copied to clipboard
Windows.Forms.Control.DoDragDrop crashes with ComWrappers
Calling Control.DoDragDrop crashes when it calls into Ole32.DoDragDrop with this call stack:
System.NotImplementedException
HResult=0x80004001
Message=The method or operation is not implemented.
Source=WinFormsComInterop
StackTrace:
at WinFormsComInterop.WinFormsComWrappers.ComputeVtables(Object obj, CreateComInterfaceFlags flags, Int32& count)
at System.StubHelpers.InterfaceMarshaler.ConvertToNative(Object objSrc, IntPtr itfMT, IntPtr classMT, Int32 flags)
at Interop.Ole32.DoDragDrop(IDataObject pDataObj, IDropSource pDropSource, DROPEFFECT dwOKEffects, DROPEFFECT& pdwEffect)
at System.Windows.Forms.Control.DoDragDrop(Object data, DragDropEffects allowedEffects, Bitmap dragImage, Point cursorOffset, Boolean useDefaultDragImage) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Control.cs:line 5412