PRB: DAO 3.0 Must Be Used in Primary Thread (151407)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q151407 SYMPTOMS
Attempting to use either the MFC DAO classes or the DAO SDK dbDao classes
in any thread but the primary one causes unexpected behavior.
CAUSE
DAO 3.0 is not marked as apartment-model or free-threaded in the registry.
No multithreading testing has been done on DAO 3.0. Any documentation
should say that DAO 3.0 is not thread-safe and should only be used in the
primary thread in a process.
RESOLUTION
Do not use MFC DAO or the DAO SDK dbDao classes in any thread but the
primary thread of an application.
STATUS
This behavior is by design.
REFERENCES147629
PRB: Problems if ODBC or DAO in DLL's InitInstance or DLLMain
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbDatabase kbprb kbprogramming kbusage KB151407 |
---|
|