Exception at creation of class Font

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
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

Postby Mageno » Sun Apr 05, 2009 9:46 pm

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]

Return to “wx.NET”

Who is online

Users browsing this forum: No registered users and 1 guest