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

Daniel Morgan monodanmorg at yahoo.com
Mon Jul 10 12:48:26 EDT 2006


You should show the trace for this exception.  In it, you might be able to see why it didn't load the class.
Could it be you do not have libgdiplus.dynlib?  Or maybe need to modify a config file to map the dll?
 
I do not use Mac so I am only guessing here.

----- Original Message ----
From: Martin Hinks <mhinks at gmail.com>
To: mono <Mono-list at lists.ximian.com>
Sent: Monday, July 10, 2006 11:02:03 AM
Subject: [Mono-list] An exception was thrown by the type initializer - System.Drawing.Text.PrivateFontCollectionm on Mac


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
_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list