FIX: ADO Memory Leak Occurs on Web Servers with MDAC 2.5 or 2.6 (314638)



The information in this article applies to:

  • Microsoft Data Access Components 2.5
  • Microsoft Data Access Components 2.5 SP1
  • Microsoft Data Access Components 2.5 SP2
  • Microsoft Data Access Components 2.6
  • Microsoft Data Access Components 2.6 SP2
  • Microsoft Data Access Components 2.6 SP1
  • ActiveX Data Objects (ADO) 2.5
  • ActiveX Data Objects (ADO) 2.6

This article was previously published under Q314638

SYMPTOMS

On a Web server that is using Microsoft Data Access Components (MDAC) 2.5 or 2.6, a memory leak may occur when using ODBC to connect to a data source. You can confirm this by using Performance Monitor to track the private bytes allocated by either the Internet Information Server (IIS) process or the DLLHost process under which a particular IIS application is loaded.

CAUSE

ADO internally allocates empty strings for the EXCEPINFO structure in all cases although this structure is only needed in the case of a failed HRESULT.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Microsoft Data Access Components (MDAC) 2.7.

Modification Type:MinorLast Reviewed:11/4/2003
Keywords:kbbug kbfix kbQFE KB314638