Jump to content
  • Advertisement
Sign in to follow this  
KeldorKatarn

[SlimDX] AdapterInformation records no HRESULT

This topic is 3624 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

The AdapterInformation methods, e.g. GetCaps() do not record any HRESULTs. This means that a call to Result.Last right after such a method call will not return the correct code. I got a huge problem out of this in my last application. I didn't know this was the case and had an error check in my application where the graphics device is (re)created. It suddenly failed due to an error result from a direct input call. The error wasn't overidden and it took me hours to find out the error wasn't originating from the graphics call after all. (I only found this out by looking throught the directX documentation which told me, the reported error wasn't possible for my call, and then looking into the SlimDX sourcecode). Please check your methods for HRESULT recording. There may be more problems here. Every call to directX that has an HRESULT must also be recorded by SlimDX, otherwise people used to DirectX error handing will get huge problems because some methods suddenly cannot be checked anymore.

Share this post


Link to post
Share on other sites
Advertisement
Hmm. Looks like this is one of those rather old sections of code that never got updated to connect to our error handling code. I'll go through it and related classes to make sure everything's up to snuff shortly.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!