Dynaverse.net

Off Topic => Engineering => Topic started by: toasty0 on August 05, 2005, 09:56:35 am

Title: [Game Engine] Ah yuk! An exception
Post by: toasty0 on August 05, 2005, 09:56:35 am
I'm sure I'll get plenty more of these but never the less this is my first DX exception and sucks!

(http://www.toasty0.com/images/exception.gif)

Now, where did I put that bottle of white out...
Title: Re: [Game Engine] Ah yuk! An exception
Post by: Bonk on August 05, 2005, 04:53:53 pm
http://www.dynaverse.net/forum/index.php/topic,163358332.msg1122605379.html#msg1122605379  ;)
Title: Re: [Game Engine] Ah yuk! An exception
Post by: toasty0 on August 05, 2005, 09:38:36 pm
The irony of that is that the code is not supposed to an invalid call in a winform.

So I should not have to write a try/catch/final...dammit!
Title: Re: [Game Engine] Ah yuk! An exception
Post by: toasty0 on August 07, 2005, 09:19:06 am
Oh crapola. The exception exists in the Main() method. No try/catch there...

 :help: I've tripped over a exception and can't get back up...
Title: Re: [Game Engine] Ah yuk! An exception
Post by: toasty0 on August 08, 2005, 10:36:48 pm
Had a bit more time to mess with this and did a dump of sorts of the JIT.

Here it is:

************** Exception Text **************
Error in the application.
-2005530516 (D3DERR_INVALIDCALL)
   at Microsoft.DirectX.Direct3D.Device.DrawUserPrimitives(PrimitiveType primitiveType, Int32 primitiveCount, Object vertexStreamZeroData)
   at BattleTank2005.GameEngine.OnPaint(PaintEventArgs e) in c:\inetpub\wwwroot\battletank2005\gameengine.cs:line 95
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(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.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
BattleTank2005
    Assembly Version: 1.0.2046.35328
    Win32 Version: 1.0.2046.35328
    CodeBase: file:///C:/Inetpub/wwwroot/BattleTank2005/bin/Debug/BattleTank2005.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
Microsoft.DirectX.Direct3D
    Assembly Version: 1.0.2902.0
    Win32 Version: 9.05.132.0000
    CodeBase: file:///c:/windows/assembly/gac/microsoft.directx.direct3d/1.0.2902.0__31bf3856ad364e35/microsoft.directx.direct3d.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.DirectX
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///c:/windows/assembly/gac/microsoft.directx/1.0.2902.0__31bf3856ad364e35/microsoft.directx.dll
----------------------------------------
System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------

************** JIT Debugging **************