Page 1 of 1

XNA Game Studio

Posted: Sat Oct 21, 2006 5:20 pm
by LuxuriousMeat
i got the xna game studio and when ever i try to debug my game i get this error:
The values used in the attempt to create the GraphicsDevice were invalid.
on this void on the this.Componets.Add.. part in Game1.Designer.cs:

Code: Select all

private void InitializeComponent()
        {
            this.graphics = new Microsoft.Xna.Framework.Components.GraphicsComponent();

            this.GameComponents.Add(this.graphics);

        }
does anybody knwo why this happens? could it be my display driver because it used to work but then i got a new monitor and after i installed it it wont debug any more

well...

Posted: Thu Jan 10, 2008 5:59 pm
by medp
well since its saying this.graphics, it means that its been decalred somewhere else, so find where its decalred and mess with that

Posted: Thu Jan 10, 2008 6:31 pm
by LuxuriousMeat
There was something wrong with my driver I believe and nice 1 year and 2 month bump...