Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL Loading-- Delay in Thread

Status
Not open for further replies.

DougCa

Technical User
Nov 1, 2002
13
0
0
US
have a thread loading a DLL and it works great except when I cold boot the machine. The DLL I am loading takes time to load the first time and it hangs up my thread. Any ideas on what I can do here? An example would be nice.

I am using LoadLibrary in InitExtAgent function. Can I use a sleep, or what. It needs to be thread safe. Is there a better way to tell when the LoadLibray has actually completed?

hInst=LoadLibrary("C:\test.dll); //this takes a few seconds
if (hInst)
{
Do stuff
}


Thanks,
Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top