Exception at creation of class Font

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
Mageno
In need of some credit
In need of some credit
Posts: 1
Joined: Sun Apr 05, 2009 9:37 pm

Exception at creation of class Font

Post by Mageno »

I'm trying create Font class

Code: Select all

 int fontSize = 8;
   
 mMinorFont = new wx.Font(fontSize, FontFamily.wxNORMAL, FontStyle.wxNORMAL, FontWeight.wxNORMAL);
The exception is thrown out, after that.

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
Such exception throws in version 0.7.2 and 0.8.0.

What's I am doing wrong? How create font class right?[/code]
Post Reply