https://bugs.winehq.org/show_bug.cgi?id=55513
--- Comment #10 from Jeff Smith whydoubt@gmail.com --- Interesting that it worked for you under mono 7.4.1, as it still crashes for me.
Based on the crash report, I turned on tracing in Mono and learned a bit more.
- The issue is triggered by moving the cursor over items in the toolbar. - In trying to display tooltips, the cursor's hotspot is checked. - The winforms implementation to get HotSpot, autoboxes and unboxes the cursor's handle (as Icon) before calling GetIconInfo on that handle. - The mono implementation of the Icon constructor calls on Bitmap.FromHicon which basically wraps GdipCreateBitmapFromHICON (which fails for cursors) and throws an exception on the InvalidParameter return status.
A couple of possible solutions: - winforms: pass the cursor's handle directly to GetIconInfo (avoid the boxing). - mono: make the Icon constructor lazy (delay creating bitmap until needed). Either or both should fix this bug, but the mono fix could potentially be a lot of work, while the winforms fix should be simple.