Firstly I'd like to say hello. This is my first post having ghosted for some time - I know,
I'm a bad man.
I'm pretty sure this following post hasn't been adressed on the forum, I may be wrong -
it's quite large.
Why on this earth is the following line of code causing a NullReferenceEx ception?
pfc = new PrivateFontColl ection();
Here's the stack:
System.Drawing. SafeNativeMetho ds.GdipNewPriva teFontCollectio n(IntPtr&
fontCollection) +0
System.Drawing. Text.PrivateFon tCollection..ct or()
Adquiesco2.Rend erFont.Page_Loa d(Object sender, EventArgs e) in d:\web
design\active sites\adquiesco 2\renderfont.as px.cs:34
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()
This has got me *confused*. It looks like some code *inside* the System.Drawing
collection is messing up... but surely this is caused by something I have done. The line
I have shown you is literaly the first line of code executed in the on Page_Load
method. Nothing happens before it!
------------------------------------
Another unchecked rambeling brought to you by:
Oddball
joshua@bf#N0SP4 M#wd.co.uk
Comment