Jump to content
  • Advertisement
Sign in to follow this  
ballack

direct3d unhandled exception

This topic is 4708 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!