Winforms is giving me grief.When I package my game with mkbundle it works on Linux, but I get this error on Mac when my exception-handling dialogs (made with winforms) try to initialize:
System.TypeInitializationException: The type initializer for
'System.Drawing.GDIPlus' threw an exception. --->
System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/5.16.0/lib/libgdiplus.dylib
at(wrapper managed-to-native)
System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
I need to get this working, or find a replacement.My winform dialogs aren’t complex, but the richtextbox on them allows the user to select and copy the stack trace to clipboard, something I’ve had trouble replicating elsewhere.They’re also capable of displaying (on windows at least) exceptions which prevent the OpenGL window from opening, which is why I can’t just spritebatch it to the main game window.
Thanks for the suggestion, willmotil. I already stream write a crashlog after the dialog, and I tried to open it as an alternative if raising the dialog failed. Unfortunately, our test mac managed to throw exceptions from within the try catch block, so I don’t even know what’s real anymore.
Looking into other solutions, I learned about and tried downloading the Gtk Sharp GUI library. (https://www.mono-project.com/docs/gui/gtksharp/tutorials/). Unfortunately, the library is 32 bit. I’d rather not go back to building my game in 32-bit: too many Memory Fragmentation issues.