Jump to content

  • Log In with Google      Sign In   
  • Create Account

BenS1

Member Since 22 Mar 2006
Offline Last Active Apr 04 2013 06:50 AM
-----

Posts I've Made

In Topic: Error Creating Debug Device

04 January 2013 - 06:20 AM

Another tool to try is Depends.exe and tell it to profile your game. It'll then list all the DLLs loaded (Which tree of which DLLs loaded them).

 

Here is the output on mine:

Depends.jpg

 

Interestingly you can see that D3D11.dll tries to dynamically load D3D11SDKLayers.dll twice. The first time it tries to load if from my games directory, and fails (See the yellow circle with a question mark in it). The second time it loads it successfully from the SysWOW64 directory.

 

Try this with your app and see whether D3D11.dll is even trying to load the layers DLL and if it is where is it looking and failing.

 

Thanks

Ben


In Topic: Error Creating Debug Device

04 January 2013 - 06:00 AM

Can you check if you have D3D11SDKLayers.dll on your system. On my system I found it in the System32 and SysWOW64 directories, as well as in \Microsoft DirectX SDK (June 2010)\Developer Runtime\x86 and \Microsoft DirectX SDK (June 2010)\Developer Runtime\x64 directories.

 

Also when you run your app use something like SysInternals Process Explorer to see if the D3D11SDKLayers.dll is being loaded.

 

For example, when I run my game in Debug mode I can see from Process Explorer that the DLL is being loaded, and specifically I can see its the one from the SysWOW64 directory:

D3dDebugDLL.JPG

 

Thanks

Ben


In Topic: Strange Text Rendering Crash In Release Mode Only

04 January 2013 - 05:46 AM

Thanks again Zaoshi

 

The XMFLOAT4X4 solution is working for me, but I'll keep this in mind for future.

 

Of course I could create my own RAII wrapper that acts as a smart pointer for aligned mallocs and frees.

 

Thanks

Ben


In Topic: Strange Text Rendering Crash In Release Mode Only

03 January 2013 - 10:48 AM

Thanks again Zaoshi

 

Can I then free the memory using delete, or does it have to be freed using free?

 

If it can be freed using delete then it'll allow me to use a smart pointer (I don't like using naked raw pointers if I can help it).

 

Thanks

Ben


In Topic: Strange Text Rendering Crash In Release Mode Only

03 January 2013 - 09:26 AM

Thanks again Zaoshi,

 

If I use _aligned_malloc then it'll allocate the memory, but it won't called the constructors and all the other stuff that new does. Similarly with free vs delete.

 

I've actually given up on the alignment and worked around the problem by changing from using XMMATRIX (Which requires alignment) to using XMFLOAT4X4 (Which doesn't require alignment) and using the Load/Store functions to convert between them if and where necessary. There doesn't seem to be any performance impact at all.

 

Thanks everyone for your help.

 

Ben


PARTNERS