Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Multithreaded connections hanging problem

Re: Multithreaded connections hanging problem

From: JimmyN1 <jimmyn1_at_aol.com>
Date: 07 Jun 2002 05:18:56 GMT
Message-ID: <20020607011856.11600.00001250@mb-mu.aol.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US