Problems with DAO in a DLL 
Author Message
 Problems with DAO in a DLL

Here is the scenario:

I have a VB app that uses DAO. This app calls two VC DLLs, each of which
use DAO. My app crashes on exit. It asserts on a line that tells me that my
DLL must call AfxDAOTerm. If I override ExitInstance in each of my DLL's
app classes and put AfxDaoTerm before calling the base class, it still
crashes, although in a different line.

As far as I can think, the problem is in the fact that MFC keeps one DAO
Engine object per applications (so the doc says). Is this one per DLL, or
one per EXE? What about if the EXE is a VB EXE? Does MFC get its Engine
from the EXE, or does it create a new one for my VC DLLs? If so, is it one
per DLL or one for both DLLs? If I terminate the DAO stuff in each of my
DLLs, am I not terminating the same thing twice? How can I ensure that I
terminate DAO properly without depending on the DLL unloading mechanism?

I'd appreciate any help......

Marcos Garcia

Wed, 30 Jun 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problem using DAO in a DLL - AfxdaoTerm problem

2. Problems with Dao in a DLL

3. Problem terminating DAO from MFC DLL

4. DAO problem with DLL dbdao3.dll

5. DAO problem with DLL dbdao3.dll

6. Help: problem with NT DLL RAS routine and DAO

7. Problems When Calling DAO from within DLL

8. Help: problem with NT DLL RAS routine and DAO

9. DAO MSJET35.dll MSJET40.dll

10. DAO example for a DLL?

11. Using DAO in DLL

12. Using DAO In DLL ( VC 4.2 )


Powered by phpBB® Forum Software