I have a WinForms application that supports drag and drop in windows. I'm working on porting it to mono. I found that the line
AllowDrop = true;
causes the program to exit with an error code of 0xc0000005. I've tried setting this property on the main form as well as a listbox and I get the same result for both.
This happens with 64-bit mono (version 5.20.1.19) on Windows 10. This happens if I compile the code with Visual Studio or with mono. I've tried using 32-bit mono and found that the program doesn't exit, but drag and drop doesn't work.
I've also tried running this under linux and it seems to work as expected.
So my questions are:
One last thing - I'm not sure if this is relevant, but when I enable mono debug output, the last few lines before program exit are:
Mono: DllImport searching in: 'ole32.dll' ('ole32.dll').
Mono: Searching for 'RegisterDragDrop'.
Mono: Probing 'RegisterDragDrop'.
Mono: Found as 'RegisterDragDrop'.
User contributions licensed under CC BY-SA 3.0