Jump to content
  • Advertisement
Sign in to follow this  
Lumz

Visual studio debugging and DirectX libraries.

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

RESOLVED: DirectX control pannel was set to break on state creation. Dunno why it didn't break before, but it solved the problem.

 

EDIT: It seems that the only problem is the D3D11_CREATE_DEVICE_DEBUG flag. As i don't get any issues if i set flags to 0 when calling D3D11CreateDeviceAndSwapChain.

 

Hello,

 

I'm not completly sure that this topic is at its right place, because i'm not sure of the problem itself.

Nevertheless, here it is.

 

I've been compiling and debugging (F5) without any trouble both in debug and release mode WIHTOUT changing the debug path in vs2012.

The current folder hierarchy looks like follow:

 

  • Root
    • Binaries
      • Debug
        • Project1.exe
        • Project2.dll
        • ...
      • Release
    • Projects
      • Project1.vsxproj
      • Project2.vsxproj
      • ...
    • Temp
      • Debug
        • Project1
          • Project1.exe
          • ...
        • Project2
          • Project2.dll
          • ...
        • ...
      • Release
        • ...

 

I'm using a post-build step that simply copy *.exe and *.dll from the temp folder to the binaries folder.

I'm trying to specify vs2012 that the binary i want to debug is the one in the binaries folder. So i did specify the correct path in the project settings but as i reach D3D11CreateDeviceAndSwapChain and ONLY in debug mode ( with D3D11_CREATE_DEVICE_DEBUG ), i get an unhandle exception from D3D11.

D3D11 INFO: Create ID3D11Context: Name="unnamed", Addr=0x005F5818, ExtRef=1, IntRef=0 [ STATE_CREATION INFO #2097225: CREATE_CONTEXT]
D3D11: **BREAK** enabled for the previous message, which was: [ INFO STATE_CREATION #2097225: CREATE_CONTEXT ]
Exception de première chance à 0x7637C41F (KernelBase.dll) dans Sandbox.exe : 0x0000087A (paramètres : 0x00000003, 0x0059C424, 0x0059D184).
Exception non gérée à 0x7637C41F (KernelBase.dll) dans Sandbox.exe : 0x0000087A (paramètres : 0x00000003, 0x0059C424, 0x0059D184).

As said previously i have no troubles if i don't change the binary's path. Anyone has a suggestion ?

Regards.

Edited by Lumz

Share this post


Link to post
Share on other sites
Advertisement
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!