Sign in to follow this  
ballack

direct3d unhandled exception

Recommended Posts

hi , i ve created a skeleton direct3d app, but i get a ecxeption when i run the program as below, can anyone tell me why is this?
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Samples.DirectX.UtilityToolkit.Framework.Cleanup3DEnvironment(Boolean releaseSettings) in E:\blockers\Blockers\Framework\dxmut.cs:line 2668
   at Microsoft.Samples.DirectX.UtilityToolkit.Framework.Shutdown() in E:\blockers\Blockers\Framework\dxmut.cs:line 2540
   at Microsoft.Samples.DirectX.UtilityToolkit.Framework.Dispose() in E:\blockers\Blockers\Framework\dxmut.cs:line 3892
   at GameEngine.Main() in e:\blockers\blockers\assemblyinfo.cs:line 157The program '[488] Blockers.exe' has exited with code 0 (0x0).

Share this post


Link to post
Share on other sites
Usually "Object reference not set to an instance of an object." means that a object is null or has not been instantiated. Maybe disposing a device when it has already been disposed. Or trying to use a device that failed when it was created and the error hasn't been caught.

Just check that the method you are calling/invoking does not reference any objects that are null or hasn't been initialized.

I hope this helps.
Take care.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this