Closed funnelweb closed 11 years ago
This is a Mono 3.0 bug in System.Windows.Forms.Form().
Submitted https://bugzilla.xamarin.com/show_bug.cgi?id=7962
Will look for a workaround for F#. --gui is used to have an event loop and do graphics etc. from the F# REPL.
It might be useful to have an equivalent command line option to start other popular toolkits, like MonoMac or Gtk#
Is the WindowsForms bug in Mono 3.0 likely to get fixed?
Do the event loops of the different toolkits interoperate in any way (can you use a Gt# widget with a MonoMac widget etc.?)
I think you can install an even loop after the fact with fsi.EventLoop
workaround this as best as possible in https://github.com/fsharp/fsharp/commit/85b2663b3ba081780becaa885b4c9f80e6bf71dd
Maybe someone can blog how to set up the event loop for Gtk# and MonoMac?
Hopefully the Mono bug can be fixed.
I wonder if this is a problem with modern builds of GDI+ that fail to find the system fonts.
It sure looks like that would explain it
Starting up fsharpi with --gui gives an exception with Mono 3.0 on MacOS, looks like it is DefaultFont