Re: LoadLibrary call hangs ..sometime
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Sun, 27 May 2007 09:00:03 -0700
These restrictions also apply to static objects initialization, because it's
done in DllMain context.
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:%23ivy8bGoHHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
What does your DLL do in DllMain? There are few things that are safe to do
in DllMain, and doing unsafe things often results in a deadlock. If you
perform some complex initialization in DllMain, consider creating a
separate initialization function and requiring your client to call it
right after loading your DLL.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: LoadLibrary call hangs ..sometime
- From: Igor Tandetnik
- Re: LoadLibrary call hangs ..sometime
- Prev by Date: Re: Get ASCII value for character when higher than 127
- Next by Date: Re: VC2005 cannot build project, complains about missing items...
- Previous by thread: Re: LoadLibrary call hangs ..sometime
- Next by thread: Re: LoadLibrary call hangs ..sometime
- Index(es):
Relevant Pages
|