XNA Game Studio

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
User avatar
LuxuriousMeat





Posts: 824
Joined: Thu Nov 03, 2005 6:43 pm
Location: zzzzzzzzzzzzzzzz
Contact:

XNA Game Studio

Post 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
Image
medp





Posts: 13
Joined: Sun Dec 24, 2006 1:42 pm

well...

Post 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
User avatar
LuxuriousMeat





Posts: 824
Joined: Thu Nov 03, 2005 6:43 pm
Location: zzzzzzzzzzzzzzzz
Contact:

Post by LuxuriousMeat »

There was something wrong with my driver I believe and nice 1 year and 2 month bump...
Image
Post Reply