3

I'm having this nasty problem with my game randomly crashing when changing the game window size, and I can't seem to find the source of the issue, so I'd like to try and approach this from another angle.

Say the GraphicsDevice got disposed somehow. Can I recreate it or return it to its working state, so the game could continue running?

Community
  • 1
  • 1
user1306322
  • 8,561
  • 18
  • 61
  • 122

1 Answers1

1

Nope.

That instance is coupled to so many things, that using a new one after that's been disposed in its life cycle would be pratically reimplementing XNA. If you're trying to use it and it's been disposed, you're doing something very wrong. And you can't make things right by fixing a small implementation error with a huge design and project error.

For your own good, try to figure out what you've done wrong, and fix that instead. Check whether everything you're doing is being done at the right moment.

Geeky Guy
  • 9,229
  • 4
  • 42
  • 62
  • You can see the linked question for additional information on the original issue. If you can add something useful to that question, please do. – user1306322 May 20 '13 at 18:38
  • 1
    Only this: out of the three answers so far in there, two of them may be the one you're looking for (I'm not betting on the guy who's just quoting docs). – Geeky Guy May 20 '13 at 18:39