NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them.
They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line.
I have no idea where to even start. Is it my install? My PC? My hardware? The program I'm trying to run?
Once I know the environment is actually working, I can begin the learning!
[749 byte] By [
deKay] at [2007-12-25]
Im glad im not alone, im having the same problem, im versed in VB and html and picking up php, the languages arent that different, but im still new at this and i have no idea what to do to solve this problem.
Can some one please help
(edit)
I found a similar problem in new projects, if you turn AllowMultiSampling to False (setting on the graphics), once youve done this it will run.
Im not sure how to fix the space game yet
(/edit)
And no sooner had I replied to that, I found this:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683138&SiteID=1
Maybe that will work? I can't test it right now.
deKay wrote: |
And no sooner had I replied to that, I found this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683138&SiteID=1Maybe that will work? I can't test it right now.
|
|
In this thread, this modification gave certain:
Add the following to line 20 in SpacewarGame.Designer.cs
graphics.AllowMultiSampling = false;
and change line 109 in SpacewarGame.cs from
graphics.AllowMultiSampling = true;
to
graphics.AllowMultiSampling = false;
I have a ti4200 geforce card, and with modification, now i compile and run the game !
Hmm, I am having the same problem and am going to try the suggested fix. Just in case it doesn't work I thought I'd post my card's info. Its a POC really, but its a gforce mx440 64mg card from PNY. It has T&L but I don't know if it supports Shaders.
If I my memory serves me right. This is because your graphics card does not support single pass rendering of the amount of textures that the application is trying to render.
In short. If you are going to be happy with XNA get yourself a shader 2.0 compliant card.
Geforce 6 and 7 series or ATI 9 and X cards
Regards
Joachim
I was able to make the changes listed above and the game begins to the start screen where it shows A, B, X and then stops.
Using an ATI 9250 so it should handle the graphics for the XNA.
thoughts?