1
Answer

Issue with DLLMain Microsoft.DirectX.DirectSound.dll

Santhosh

Santhosh

8y
1.2k
1
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)