Author Topic: [Solved] Crash on Start  (Read 3676 times)

Offline Swishtail

  • Newbie
  • *
  • Posts: 2
[Solved] Crash on Start
« on: August 23, 2009, 09:53:53 pm »
8/23/2009 8:48:58 PM
-----------------------------------CurrentDomain_UnhandledException-----------------------------------System.TypeInitializationException: The type initializer for 'AIWar.Windows.LicenseKey' threw an exception. ---> System.ArgumentException: Font 'Arial' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)
   at AIWar.Windows.LicenseKey.InitializeComponent() in C:\vcprojs\AIWar\Windows\LicenseKey.Designer.cs:line 70
   at AIWar.Windows.LicenseKey..ctor() in C:\vcprojs\AIWar\Windows\LicenseKey.cs:line 24
   at AIWar.Windows.LicenseKey..cctor() in C:\vcprojs\AIWar\Windows\LicenseKey.cs:line 15
   --- End of inner exception stack trace ---
   at AIWar.Windows.LicenseKey.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Finalize()


Any advice?
« Last Edit: September 25, 2009, 09:28:10 am by Fiskbit »

Offline Revenantus

  • Arcen Games Staff
  • Hero Member Mark III
  • *****
  • Posts: 1,063
Re: Crash on Start
« Reply #1 on: August 23, 2009, 09:56:19 pm »
Hi Swishtail,

Welcome to the forum.

From the contents of the errors file, it appears that the Arial font isn't installed on your system.

If you could download and install the font this should resolve your problem - http://web.nickshanks.com/fonts/microsoft-core-web-fonts

Hope this helps.

Regards,
Revenantus

Offline Swishtail

  • Newbie
  • *
  • Posts: 2
Re: Crash on Start
« Reply #2 on: August 23, 2009, 10:08:14 pm »
Yep, that did the trick.  Weird... I can't imagine how I lost Arial.... Thanks!

Offline Revenantus

  • Arcen Games Staff
  • Hero Member Mark III
  • *****
  • Posts: 1,063
Re: Crash on Start
« Reply #3 on: August 23, 2009, 10:09:42 pm »
No problem! :)

We're packaging the font with the next version of the game to prevent this from occurring again, sorry for the inconvenience.

Enjoy playing AI War.