Snaoledb.dll Init Fails When the CoInitializeEx Multithreaded Function Is Used (264526)
The information in this article applies to:
- Microsoft Host Integration Server 2000
- Microsoft SNA Server 4.0
- Microsoft SNA Server 4.0 SP1
- Microsoft SNA Server 4.0 SP2
- Microsoft SNA Server 4.0 SP3
- Microsoft OLE DB Provider for AS/400 and VSAM 4.0 SP2
- Microsoft OLE DB Provider for AS/400 and VSAM 4.0 SP3
This article was previously published under Q264526 SYMPTOMS
If an application thread calls the CoInitializeEx(NULL, CO_MULTITHREADED) function on a Windows NT 4.0-based computer, the thread may receive the following error message when it attempts to initialize the OLE DB Provider for AS/400 and VSAM:
Initialization of the dynamic link library e:\program files\sna\system\snaoledb failed. The process is terminating abnormally.
This problem does not occur on Windows 2000-based computers, or if Apartment threading is requested. NOTE: Even though the OLE DB Provider for AS/400 and VSAM only supports the Apartment-threading model (as documented in the SNA Server SDK online Help topic "Programming Considerations Using the OLE DB Provider for AS/400 and VSAM"), the application calling the thread must still be able to initialize the COM interface using the Multithreaded option.
CAUSE
The OLE DB Provider for AS/400 and VSAM is incorrectly calling OleInitialize, requiring the calling thread to request Apartment threading.
RESOLUTIONTo resolve this problem, obtain the latest service pack for SNA Server 4.0. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
215838 How to Obtain the Latest SNA Server Version 4.0 Service Pack
WORKAROUND
If possible, initialize the thread using the Apartment-threading model:
Call CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)
-OR-
Call CoInitialize(NULL)STATUSMicrosoft has confirmed that this is a problem in Microsoft SNA Server version 4.0, 4.0 SP1, 4.0 SP2 and 4.0 SP3.
This problem was first corrected in SNA Server 4.0 Service Pack 4.
Modification Type: | Minor | Last Reviewed: | 12/15/2003 |
---|
Keywords: | kbbug kbfix kbQFE kbSNA400PreSP4fix kbSNA400sp4fix KB264526 |
---|
|