Jump to content
  • Advertisement
Sign in to follow this  
Quat

D3D11: CORRUPTION thread issue

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

I am getting the error (the crash only happens sometimes):

[size=1]D3D11: CORRUPTION: ID3D11DeviceContext::Map: Two threads were found to be executing functions associated with the same Device at the same time. This will cause corruption of memory. Appropriate thread synchronization needs to occur external to the Direct3D API.

I am only using one device context. The only thing "special" about the crash area code is that my engine exposes a Rendered signal (boost::signals2) that the application subscribes to and does some line drawing. The crash occurs (only sometimes) in a member function event handler that subscribes to the Rendered signal.

Does anyone have any guesses if this is a boost::signals2 issue?

Share this post


Link to post
Share on other sites
Advertisement
[size=2]Seems that you are accessing the device context from multiple threads, which will result in the described error message.

[size=2]Best regards!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!