[SlimDX] SEHException thrown from call to Device.CreateWithSwapChain()

Started by
6 comments, last by RobAU78 11 years, 8 months ago
I just started looking into SlimDX and was trying to run tutorials 2 and 3 on my home computer, but I ran into a snag on the line where Device.CreateWithSwapChain() is called. Apparently an SEHException is thrown on that line. The error code is -2147467259, which apparently means an undetermined error has occurred. This issue comes up with both DeviceCreationFlags.None and DeviceCreationFlags.Debug, which suggests that downloading the DirectX SDK won't solve the problem (but I could be wrong). For reference, my computer is running 32-bit Windows XP Professional. The processor is an Intel E5400 with integrated graphics (i.e. I don't have a separate graphics card).
Advertisement
You can't use D3D10 or D3D11 on XP. Sorry. This is a limitation of DirectX and the revised driver model in Vista and 7.
Mike Popoloski | Journal | SlimDX
Ah, that's what I was afraid of. The SlimDX site says that it supports Windows XP though? Is that no longer accurate?
If you use the Direct3D9 components, it will work fine on XP.
Mike Popoloski | Journal | SlimDX
Okay, how do I use the D3D9 components with SlimDX? Or can I? Sorry, I'm a complete noob when it comes to this. tongue.png
D'oh, nevermind! I just noticed the following using-statement in the tutorials: "using SlimDX.Direct3D11;" So I need to change that to "using SlimDX.Direct3D9;"
It's a whole separate API. The tutorials only cover D3D11.
Mike Popoloski | Journal | SlimDX
Yeah, stupid me forgot to look at the using-statements. tongue.png Thanks for your help!

This topic is closed to new replies.

Advertisement