Jump to content
  • Advertisement
Sign in to follow this  
Tim Ingham-Dempster

[SlimDX] Can't run MiniTri11 sample.

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


As the subject says, I'm having trouble running the MiniTri11 sample from the June2010 SlimDX SDK. I can build it fine, but it breaks when running at line 52:

Device.CreateWithSwapChain(DriverType.Reference, DeviceCreationFlags.Debug, desc, out device, out swapChain);

with the error message:

"Managed Debugging Assistant 'LoaderLock' has detected a problem in 'C:\Users\Tim\SlimDX Samples (June 2010)\Direct3D11\MiniTri11\bin\Debug\MiniTri11.vshost.exe'.
Additional Information: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang."

I thought this might be due to my using a dx10 graphics card, so I created a FeatureLevel[] with FeatureLevel10_0 and used the appropriate overload of Device.CreateWithSwapChain but got the same error message.

I'm using VS2008 on vista.

I'd appreciate it if anyone could help with this.


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!