Attempting managed execution inside OS Loader lock.Do not attempt to run managed
code inside a dllmain or image initialzation function since doing so can cause the
application to hang.
July 5th, a hot day, i met a new problem. when i using the unmanaged code in my .net project. Though I had loaded the dll and get the function, but it can not run correctly,an error about OS Loader lock was thrown out.I just don't know what cause it. Maybe tomorrow i will get it ahead.
postscript, i have found the cause, a file using in the unmanaged code was missed. When I call the function, the V.S. can't locate the exception and just thrown the error OS Loader Lock.