Santhosh

Santhosh

  • NA
  • 300
  • 140.7k

Issue with DLLMain Microsoft.DirectX.DirectSound.dll

Sep 12 2016 2:23 AM
I have developed a windows forms app.
When i try for unit testing, i was unable debug the app.. when i try to create instance of it.. it throws an exception like
 
DLL 'C:\xxxxxxx\xxxxx\Microsoft.DirectX.DirectSound.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.
 
 
 
How to get rid of this problem?

Answers (1)