XNA compiled programs crashing

Hi,

i downloaded XNA Game Studio express Beta an hour ago.
The application itself works pretty well, but when i compile an application (like the Spacewar starter kit or a new project), the exe that i find in *project folder*/bin/Release/ won't launch : it crashes and asks me if i want to send a report to microsoft.
I know it's kinda normal since it's a beta software, but if anyone knows an issue to this problem, it would be very helpful ;)

Thanks in advance.

[477 byte] By [Smealum] at [2007-12-23]
# 1
Can you give some system info for us . What is you current hardware setup , which version of the directx sdk do you have installed etc. etc.
PeterD. at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2
Does it run in Debug? I haven't had a problem with the SpaceWar Starter Kit on my laptop, it runs just fine.
JimPerry at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 3
I have an other problem, SpaceWar starts, but what buttons must i press to select the options? I've tried all but it lock at the title screen
Mirarchi at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 4
What do you mean by my hardware setup ?
The version of my directx

SDK is june 2006, but it shouldn't affect the program since there

aren't any erros/warning during compilation...(but i installed the

directX sdk will using an other account...is this a problem ?)

And, the debug mode gives me the same problem.

Should i update and reinstall my directX SDK ?

Smealum at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 5

Spacewar needs an xbox gamepad (or 2) plugged in.

There is some debug code that enable limited keyboard control http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=682463

TheZMan at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 6
What errors do you get in debug? What video card are you using?
JimPerry at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 7
It's recommended you use the August 2006 DirectX SDK. It's most likely your problem.
sheepsteak at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 8

If you try and run it under the debugger, does it run? i.e. are you just double clicking on the exe in Explorer?

If it runs under the debugger, it might be an issue with paths (and might be a bug in Spacewar).

PaulBleisch at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 9
Launching the exe from Explorer works fine for me. More than likely a problem with your setup (hardware/software).
JimPerry at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 10
have you tried this in the spacewars app? a few people have run into an issue with multisampling.

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;

sefskillz at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 11
Thanks everyone, it works now !
I installed the latest version of the directX SDK (august 2006) and changed the code, and it now works perfectly ;)
Smealum at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 12
I have the same problem. But I have august SDK. Maybe problem is in code? I must change this. But can enybody tell me why?
Akipl at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 13

Aki pl wrote:
I have the same problem. But I have august SDK. Maybe problem is in code? I must change this. But can enybody tell me why?

It doesn't crash when you run it from the IDE, but it does when you run the exe? Just confirming the problem.

JimPerry at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 14
Ok. Now I now that the problem is in code. I have VC,XNAGS, and August SDK. But the problem was still. I recognize that i have geforce 2 MX 400. I don't know that this card have shading 2.0 or not. But I know that after I was opened the starter kit and make build. Everything was ok. But when I go to debug mode (ctrl+F5) I had error occured. So I changed multi into false and add this line. Now This is working perfectly :) I had problem with audio exception too. But this is history now. I hadn't have my audio card switched on in bios :)
Akipl at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...