hi again.
i got the following error "LoaderLock Was Detected" when i tried some sample Mabaged DirectX codes.I have investigated matter and found a solution like that.
1)Opened up Debug Menu and selected Exceptions...
2)I have selected Managed Debugging Assistants and found LoaderLock
3)and remove the selected value.
then re-compile my solution.
Worked Perfect! didnt get error again any time
Hope this helps you...