In Part II – Introduction to DirectX right before 3D Graphics Terminology when I try to debug and test I get the following exception:
LoaderLock was detected
Message: DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3D\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.Direct3D.dll' is 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've read some help material on LoaderLock, but that didn't really help me. How to solve this?
EDIT: Never mind, I've looked around on the MSDN forums and it appears this problem has something to do with version conflicts. I've already found a way around this.