NoSuitableGraphicsDeviceException
Forum » MIDI Game Forums / Bugs!!! » NoSuitableGraphicsDeviceException
Started by: BenHumberstonBenHumberston
On: 1172957059|%e %b %Y, %H:%M %Z|agohover
Number of posts: 3
rss icon RSS: New posts
NoSuitableGraphicsDeviceException
BenHumberstonBenHumberston 1172957059|%e %b %Y, %H:%M %Z|agohover

I'm often getting this error when trying to debug. The debugger simply hilightes the "game.Run()" line in Program.cs file and says "Unable to create the graphics device."

If I close VS and start it up again, this often helps, though the problem seems to be coming back more often now.

Would anybody know what changed to cause this?

unfold NoSuitableGraphicsDeviceException by BenHumberstonBenHumberston, 1172957059|%e %b %Y, %H:%M %Z|agohover
Re: NoSuitableGraphicsDeviceException
KevinoidKevinoid 1175952724|%e %b %Y, %H:%M %Z|agohover

There is a thread about this on the MSDN forums with a few suggestions for how to work around it. Looks like the easiest thing to try would be to set graphics.PreferMultiSampling to false (the version they are referring to in the posts allows you to explicitly disable multi-sampling, but it looks like they took that feature out…). Also, do you have a recent version of DirectX installed?

unfold Re: NoSuitableGraphicsDeviceException by KevinoidKevinoid, 1175952724|%e %b %Y, %H:%M %Z|agohover
Re: NoSuitableGraphicsDeviceException
BenHumberstonBenHumberston 1175959075|%e %b %Y, %H:%M %Z|agohover

ok I've installed the february directx… that might help.

I've noticed that shifting screen resolution usually clears up this problem, so whenever I get it now I just flick down my resolution, then shift it back up, and it's been fine then every time so far. The PreferMultiSampling property has to be true, apparently, since our game gives a bunch of errors that I have no intention of working through right now if it's false :).

Thanks for the tip, though! My searches for answers online must have been oddly misplaced (wrong forum, I guess….).

unfold Re: NoSuitableGraphicsDeviceException by BenHumberstonBenHumberston, 1175959075|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.