Exception at creation of class Font
Posted: Sun Apr 05, 2009 9:46 pm
I'm trying create Font class
The exception is thrown out, after that.
Such exception throws in version 0.7.2 and 0.8.0.
What's I am doing wrong? How create font class right?[/code]
Code: Select all
int fontSize = 8;
mMinorFont = new wx.Font(fontSize, FontFamily.wxNORMAL, FontStyle.wxNORMAL, FontWeight.wxNORMAL);
Code: Select all
A first chance exception of type 'System.NullReferenceException' occurred in wx.NET.dll
A first chance exception of type 'System.TypeInitializationException' occurred in wxTest.exe
An unhandled exception of type 'System.TypeInitializationException' occurred in wxTest.exe
What's I am doing wrong? How create font class right?[/code]