Archived

This topic is now archived and is closed to further replies.

error launching a dx9 game [SOLVED]

This topic is 5018 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

here is the situation On a pc with this installed, the game will work: - win XP - .net 1.1 - dx9 sdk + summer update - visual .net 2003 and on a pc with this installed, it wont : - win XP - .net 1.1 - Dx9.0b (end user) the error is not telling much about the problem( apllication has generated an exception that could not be handled) The game works fine on 3 others computers with the sdk and visual studio did i miss something obvious? [edited by - brann on March 19, 2004 7:16:55 PM]

Share this post


Link to post
Share on other sites
my question is not why cant I debug

my question is why is the game failing?

i dont think that visual studio is to be installed for a game to run correctly

Share this post


Link to post
Share on other sites
Installing the end-user Dx9 SDK, or the end-user .NET framework, will NOT Install the end-user managed DirectX redistributable.

You have to tell the user to install the SDK, or to install the redistributable, adding a special command line switch (or right-clicking the managed directX .msi file and choosing "install") for it to work.

Yes, this sucks, and doesn''t exactly make it easy to ship Managed DirectX Games.

Share this post


Link to post
Share on other sites
There is no way we''re going to be able to point out the problem based on that information.

What you need to do is better error handling and logging. If your app produces a log as it goes and handles all errors properly then it should be trivial to find where it''s failing.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites
you are right

i have added logging support to my app, here is the failing line :

device = new Device(0, DeviceType.Hardware, Game.instance , CreateFlags.SoftwareVertexProcessing, pres);

the exception raised is
Error in the application.
-2146232832 (Unknown)
at Microsoft.DirectX.Direct3D.Device..ctor(Int32 adapter, DeviceType deviceType, Control renderWindow, CreateFlags behaviorFlags, PresentParameters[] presentationParameters)
at starshooter.MGraphics.InitializeGraphics()



pres is
private PresentParameters pres = new PresentParameters();
pres.Windowed = true ;
pres.SwapEffect = SwapEffect.Discard;
pres.EnableAutoDepthStencil = true ;
pres.AutoDepthStencilFormat = DepthFormat.D16;

As i said before, the computer is running windows XP, with the .net 1.1 runtime, and the managed directx retail.
it has directx 9.0b installed

the hardware is an asus pundit

another noticeable thing is that the creation of a directinput device works, so the error seems to come from direct3d (this seems to exclude a misinstalled directx)

ideas?



[edited by - brann on March 19, 2004 5:12:15 PM]

Share this post


Link to post
Share on other sites