Dustin Oprea
Dustin Oprea

Reputation: 10256

LoadLibrary in separate thread

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

Upvotes: 3

Views: 2384

Answers (1)

MSalters
MSalters

Reputation: 179917

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.

Upvotes: 4

Related Questions