[Mono-list] An exception was thrown by the type initializer - System.Drawing.Text.PrivateFontCollectionm on Mac

Martin Hinks mhinks at gmail.com
Mon Jul 10 11:02:03 EDT 2006


Hi all,

This code works fine on Mono stable under Windows but not Mac OS X:

            System.Drawing.Text.PrivateFontCollection pf;

            Console.WriteLine("GOT HERE");

            pf = new System.Drawing.Text.PrivateFontCollection();

            Console.WriteLine("GOT HERE2");

Output:

GOT HERE
An exception was thrown by the type initializer for ClassName.

Anyone have any ideas (I would upgrade to latest but the FTP is so slow atm)

-- 
Martin Hinks
http://www.m-s-d.net


More information about the Mono-list mailing list