DB2OLEDB Leaks Memory When Stored Procedure Returns Large VarChar (265792)
The information in this article applies to:
- Microsoft SNA Server 4.0 SP3
This article was previously published under Q265792 SYMPTOMS
If an application uses the Microsoft OLE/DB for DB2 Provider to receive a large adLongVarChar parameter (for example, 25,000 bytes) from a stored procedure call, the Db2oledb.dll and Db2serv.exe processes may leak memory.
The memory leak in Db2serv.exe occurs whenever the stored procedure call completes, and is visible in Performance Monitor by viewing the Private Bytes of the application process and the Db2serv.exe process. When the application ends, the Db2serv.exe memory never decreases. Over time, Db2serv.exe will grow indefinitely in size. If the stored procedure call is implemented in a COM object and invoked repeatedly from a Visual Basic program, the following error message may occur:
80004005 (unspecified error)
CAUSE
This is caused by a problem in the DB2 Provider's support for stored procedures.
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
STATUSMicrosoft has confirmed that this is a problem in Microsoft SNA Server 4.0 SP3.
This problem was first corrected in SNA Server 4.0 Service Pack 4.
Modification Type: | Minor | Last Reviewed: | 2/12/2004 |
---|
Keywords: | kbbug kbfix kbQFE kbSNA400PreSP4fix kbSNA400sp4fix KB265792 |
---|
|