Repeated errors from the Ole DB Provider for DB2 eventually cause a .NET System exception or a Win32 access violation (C0000005) (821988)
The information in this article applies to:
- Microsoft Host Integration Server 2000
- Microsoft Host Integration Server 2000 SP1
SYMPTOMSWhen you use the Ole DB Provider for DB2 (DB2OLEDB) from a
.NET Framework application that is using the Managed Provider for Ole DB, a
System exception is thrown after repeated errors are returned from the DB2OLEDB
Provider. Depending on the type of .NET application, this exception
may be one of the following and typically occurs after 40 to 50 errors have
been generated:
- System.ExcecutionEngineException
- System.StackOverflowException
- another type of System exception
CAUSEThe DB2OLEDB provider is incorrectly returning a pointer to
an existing error string, instead of allocating a new error string in its
implementation of the Ole DB GetErrorDescription function.
After a certain number of errors, the
original string is freed from memory. As a result, when the Managed Provider
for Ole DB tries to free the error string that is returned by DB2OLEDB, an
access violation occurs because the string has already been
freed.RESOLUTIONService pack information To resolve this problem,
obtain the latest service pack for Microsoft Host Integration Server 2000. For
more information, click the following article number to view the article in the
Microsoft Knowledge Base: 328152 How to obtain the latest service pack for Host Integration Server 2000 Hotfix information The English version of this hotfix has the file
attributes (or later file attributes) that are listed in the following table.
The dates and times for these files are listed in Coordinated Universal Time
(UTC). When you view the file information, it is converted to local time. To
find the difference between UTC and local time, use the Time
Zone tab in the Date and Time tool in Control Panel.
Date Time Version Size File name
--------------------------------------------------------
28-May-2003 23:10 5.0.0.914 311,568 Crtpkg.dll
28-May-2003 23:10 5.0.0.914 65,808 Crtpkg.exe
28-May-2003 23:10 5.0.0.914 688,400 Db2oledb.dll
28-May-2003 23:10 5.0.0.914 82,192 Ddmserv.exe
28-May-2003 23:10 5.0.0.914 78,096 Mseidb2c.dll
28-May-2003 23:10 5.0.0.914 885,008 Mseidb2d.dll
28-May-2003 23:10 5.0.0.914 24,848 Mseidpm.dll
28-May-2003 23:10 5.0.0.914 266,512 Mseidrda.dll
28-May-2003 23:10 5.0.0.914 147,728 Mseidt.dll
NOTE: Because of file dependencies, the most recent fix that contains
the preceding files may also contain additional files. STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
This problem was corrected
in Microsoft Host Integration Server 2000 Service Pack
2.For more information about WinDBG, visit the following Web
site:
Modification Type: | Major | Last Reviewed: | 9/18/2006 |
---|
Keywords: | kbHotfixServer kbQFE kbHotfixServer kbQFE kbQFE kbfix kbbug KB821988 kbAudDeveloper |
---|
|