Author Topic: An unhandled exception has occured  (Read 2424 times)

Offline Fleet

  • Hero Member
  • *****
  • Posts: 633
An unhandled exception has occured
« on: December 26, 2009, 08:09:47 pm »
This is on a fresh install of XP. The repair function from the setup file did not fix this. While still viewing the AI War splash, I get notification of an unhandled exception. Below is the content of the referenced txt file.

I don't have more time to work on it today (I spent all day debugging this comp), but a quick seach showed me like 12 posts, some with very similar errors. I will check them out, but in the meantime i thought someone could point me to the most relavant thread. I'll be back tomorrow morning to work on this again and work through the ~12threads.
12/26/2009 5:00:52 PM (2.0)

-----------------------------------Application_ThreadException-----------------------------------System.NullReferenceException: Object reference not set to an instance of an object.
   at AIWar.GameMusic.SetFillNotifications(Int32 numberOfSectors) in C:\vcprojs\AIWar\DX\GameMusic.cs:line 151
   at AIWar.GameMusic.Play() in C:\vcprojs\AIWar\DX\GameMusic.cs:line 342
   at AIWar.GameMusic..ctor(String Filename) in C:\vcprojs\AIWar\DX\GameMusic.cs:line 128
   at AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 177
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
« Last Edit: December 26, 2009, 08:23:05 pm by Fleet »

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: An unhandled exception has occured
« Reply #1 on: December 27, 2009, 09:24:16 am »
Hi Fleet,

Sorry to hear about your trouble there.  Usually what causes this to happen is when one of the music files is corrupted, although it may be some sort of multithreading race condition on certain computers.  Regardless, this has only happened for 2-3 people that I know of, and it happened consistently for them and not at all for anyone else.  The beta prereleases should resolve this for you -- the current one is ZF, in the main forum.  If that doesn't do it, can you post the new error that you get with the latest prerelease?  But, it's fixed it for the other couple of folks, so hopefully that will do it for you, also.

Thanks for your support of the game!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!