문제

I'm using Visual Studio 2008 and C++, and loading a DLL at runtime. However, this blocks the user-experience. I was hoping to avoid this by pushing it off to a new thread (CreateThread), but it still blocks the UI thread.

Why?

Dustin

도움이 되었습니까?

해결책

As a guess, the DLL is doing things in its DllMain which are disallowed in that context. There is very little allowed, as it runs under loader lock.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top