Archived

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

neonoblivion

App dieing do to inproper Dx config, please help

Recommended Posts

My app dies just before the first line of this code: if(lpdikey->GetDeviceState(sizeof(char)*256,keystate)==DIERR_INPUTLOST){ lpdikey->Acquire(); lpdikey->GetDeviceState(sizeof(char)*256,keystate); } I want to emphasize that it does not die do to the code. It has to be some sort of config problem, because it only dies on my pc, it works on all others. I fixed the problem a long time ago but had to fdisk and reinstall. Now the same prob is back, and I can''t remember what I did. -Klaus P.S. All the dx demos that come with the dx sdk work. Also I''m running a dual monitored geforce4/geforcefx5600, just in case you might need to know.

Share this post


Link to post
Share on other sites
quote:
Original post by neonoblivion
My app dies just before the first line of this code:


If it dies *before* that code, it''s not going to be the code that''s causing the problem, is it?

Try showing us the code that it''s just executed when it crashes.

Share this post


Link to post
Share on other sites
If you meant that your app dies on that line of code (instead of before it), are you sure that lpdikey has been initialized properly? Perhaps on your machine the creation of that object fails - so make sure to check it and handle it appropriatly.


Dustin Franklin
Mircrosoft DirectX MVP

Share this post


Link to post
Share on other sites
It does die on that line, not the line before (sry :b ). I checked all my inits on lpdi and the keyboard code and nothing has any errors, as I said this same code works on all other systems. can someone point me to how to fully redo my config in the "right" way. cause that would probably fix things. -K

Share this post


Link to post
Share on other sites