Weird behaviour: hr = pdidDevice->Acquire();
Hello there,
I am currently facing a really weird issue with DirectInput 8.1
I have developped a little 3d game using DirectX. It is based on the DirextX AppWizard framework, so far so good with the graphics and sound... The input stuff is lagely "inspired" from the donut sample with only slight customization.
My release build works fine with keyboard and mouse, my debug build also works fine except when I run it into the VC++ debugger. It crahes in USER32 from pdidDevice->Acquire(); with a memory access violation in USER32. The debug output shows nothing helpful. All SDK samples work fine and I guess I
am doing something wrong somewhere... This is really a pain because all debug sessions abort on the first attempt to gather input data.
Any help greatly appreciated, thank you in advance.
Laurent
PS: I am using winxp, the latest dx 8.1 sdk and vc++ 6.0 sp5. No joystick.
PPS: Source code of the game is available here : http://www.lafaqmfc.com/starshooter.htm Not the latest version, though.
--
Laurent TESTUD -- http://www.lafaqmfc.com/
LaurentTestud@earthlink.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement