I've ran out of idea. Any help would be appreciated, thanks
4/3/2010 8:23:46 PM (3.0.8.
-----------------------------------Application_ThreadException-----------------------------------System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SlimDX.Direct3D9.Font.DrawString(Sprite sprite, String text, Rectangle rectangle, DrawTextFormat format, Int32 color)
at AIWar.Direct3DRenderer.DrawText(String Text, Int32 X, Int32 Y, Int32 Width, Int32 Height, Int32 C, FontType Type, Boolean UseViewportOffset) in C:\vcprojs\AIWar\Framework\Direct3DRenderer.cs:line 467
at AIWar.Direct3DRenderer.DrawTextBordered(String Text, Int32 X, Int32 Y, Int32 Width, Int32 Height, Int32 C, Int32 BorderColor, FontType Type, Boolean UseViewportOffset) in C:\vcprojs\AIWar\Framework\Direct3DRenderer.cs:line 423
at AIWar.ForegroundObject.RenderHealth(Direct3DRenderer R, Boolean IsForHealthBarsOnly) in C:\vcprojs\AIWar\Framework\ForegroundObject.cs:line 14144
at AIWar.GameForm.DrawDirect3D() in C:\vcprojs\AIWar\GameFormParts\GamePanel.cs:line 1341
at AIWar.GameForm.RunNextCycle(Boolean DoRendering, Boolean DoScrollingAndInput) in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 1855
at AIWar.GameForm.gameLoop() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 294
at AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 276
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)
4/5/2010 7:52:08 PM (3.0.8.
-----------------------------------CurrentDomain_UnhandledException-----------------------------------System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at AIWar.Program.Main() in C:\vcprojs\AIWar\Program.cs:line 20
4/5/2010 7:58:32 PM (3.0.8.
-----------------------------------Application_ThreadException-----------------------------------System.OverflowException: Arithmetic operation resulted in an overflow.
at SlimDX.Direct3D9.Font.DrawString(Sprite sprite, String text, Rectangle rectangle, DrawTextFormat format, Int32 color)
at AIWar.Direct3DRenderer.DrawText(String Text, Int32 X, Int32 Y, Int32 Width, Int32 Height, Int32 C, FontType Type, Boolean UseViewportOffset) in C:\vcprojs\AIWar\Framework\Direct3DRenderer.cs:line 467
at AIWar.Direct3DRenderer.DrawTextBordered(String Text, Int32 X, Int32 Y, Int32 Width, Int32 Height, Int32 C, Int32 BorderColor, FontType Type, Boolean UseViewportOffset) in C:\vcprojs\AIWar\Framework\Direct3DRenderer.cs:line 421
at AIWar.ResourceDisplay.Render(Direct3DRenderer R) in C:\vcprojs\AIWar\Framework\ResourceDisplay.cs:line 349
at AIWar.GameForm.DrawDirect3D() in C:\vcprojs\AIWar\GameFormParts\GamePanel.cs:line 2193
at AIWar.GameForm.RunNextCycle(Boolean DoRendering, Boolean DoScrollingAndInput) in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 1855
at AIWar.GameForm.gameLoop() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 294
at AIWar.GameForm.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 276
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)