I'm trying to port a great Windows Forms program to Linux and get this error:
at (wrapper managed-to-native)
(System.Windows.Forms.Control cntl) [0x0000f] in
[DllImport("user32.dll", EntryPoint = "GetUpdateRect", CharSet = CharSet.Auto)]
private static extern IntPtr GetUpdateRectInternal(IntPtr hWnd, ref Rectangle r, bool eraseBackground);
Well, the answer is that I was asking the wrong question.
I should have been asking "How can I replace ObjectListView.cs, which depends on non-portable Windows system calls, to port this program to Mono on Linux?"
ObjectListView seems to work very well on Windows, but is not compatible with Linux or Mac systems. There's a very good discussion in the ObjectListView discussion board. The comment by Steve Hiner (2015-11-29) changed the direction of my search. Steve's approach is "I already created a proxy that uses OLV on Windows and the stock listview on Linux and Mac. That would be one way OLV could provide pseudo mono support, it could just use the stock listview without any fancy features."
Thanks, knocte, for getting me thinking in the right direction.