Crash setting AllowDrop in mono on windows

0

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:

  1. Has anyone else seen this issue and/or know how to fix it?
  2. Does anyone know what the plans are for mono WinForms support on Windows in general?

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'.
c#
.net
winforms
mono
asked on Stack Overflow Jun 3, 2019 by Aaron

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0