Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX 8 Question

Started by kitawolf Dec 12, 2001 at 11:57 AM 2 replies 150+ views
Original Post
kitawolf
kitawolf
I''m creating a game using DirectX 8 and I am trying to get it to run on different machines. It will run on my PIII machine but when I try it on a PII or a Celeron machine the program crashes during initialization. I''ve tracked the problem down to the LPDIRECT3D8->CreateDevice() call. Like I said before it will work on one machine but not others. If anyone has any ideas as to why or how to fix the problem please let me know. kitawolf
Oluseyi
Oluseyi
What parameters are you passing to the CreateDevice() function? Are you sure the display adapter can handle what you''re requesting?

[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!
S1CA
S1CA
- What return code are you getting from CreateDevice() ?

- What does the debug output say (with the debug runtimes installed) ?


It''s most likely that the graphics card in the machine this fails on doesn''t support something you''re asking for when you create the device. Examples are: asking for hardware vertex processing when the graphics card doesn''t have hardware T&L, asking for a frame buffer or Z buffer format which won''t work, asking for a sample or present mode which won''t work on that particular hardware.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
kitawolf
kitawolf
Thank You for the help guys! Your advice led me down the right path so now I can at least get the program to stop crashing on start-up. Thanks!

kitawolf

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.