Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Multithreaded connections hanging problem
maybe this will help?
From: Jim Marshall (Jim_Marshall_at_msn.com)
Subject: Re: Do I need to use AfxLoadLibrary with non-MFC dll?
Newsgroups: microsoft.public.vc.mfc
View this article only
Date: 1998/08/10
Working around a hang like this may not be a good thing. You could simply be masking a real problem in your program, which will come back to get you later.
This is the extent of the AfxLoadLibrary function (from DllInit.cpp)
HINSTANCE AFXAPI AfxLoadLibrary(LPCTSTR lpszModuleName)
{
ASSERT(lpszModuleName != NULL);
AfxLockGlobals(CRIT_LOCKSHARED);
HINSTANCE hInstLib = LoadLibrary(lpszModuleName);
AfxUnlockGlobals(CRIT_LOCKSHARED);
return hInstLib;
}
As you can see all it does is lock the MFC globals, call LoadLibrary and
unlock the MFC globals. If your app is freezing in the lock or unlock call
then you have some kind of a problem.
'
Received on Fri Jun 07 2002 - 00:18:56 CDT
![]() |
![]() |