Sign in to follow this  
blackpenny15

NullReferenceException OnLostDevice()

Recommended Posts

Hi guys, i've wrote an engine in a few days, but i've got a nasty bug i can't find, after i exit the engine i get a nullreferenceexception, this thread has details. NullReferenceException Font.OnLostDevice() also get this for a sprite aswell http://www.gamedev.net/community/forums/topic.asp?topic_id=418901 http://www.gamedev.net/community/forums/topic.asp?topic_id=266929 i've read this thread and maybe im doing something wrong, the problems only came after i started using tom millers render loop, super fast performance but i've paid the price, i'm not an expert at c#.net so any help is appreciated. Also, i'm not sure what i'm missing, thanks Si

Share this post


Link to post
Share on other sites
Sounds like you're trying to access something that's been destroyed. Without seeing your code it's hard to say anything else.

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