FIX: Connection Leak Using Parameterized Command In ADO (247757)
The information in this article applies to:
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Visual J++ 6.0
This article was previously published under Q247757 SYMPTOMS
When using Windows Foundation Classes for Java (WFC) and ADO, and opening
a recordset using a parameterized command object, connections that are
properly closed are not properly pooled and recycled, resulting in
leaked connections.
To work around this problem, call System.gc() after closing the ADO connection in
your Java COM object. In normal situations, you do not need to call System.gc()
after closing an ADO connection in order to free the connection.
RESOLUTION
This problem is fixed in the latest service packs for Windows 2000 and MDAC 2.5.
- To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
- To resolve this problem, obtain the latest service pack for Microsoft Data Access Components 2.5. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
293312 INFO: How to Obtain the Latest MDAC 2.5 Service Pack
The English version of this fix should have the following file attributes or later:
File name Date Size Version
-----------------------------------------------------
Msado15.dll 1/26/2000 329KB 2.12.4926.0
STATUSMicrosoft has confirmed that this is a problem in Microsoft Data Access Objects2.1 SP2 and 2.5. This problem was first corrected in Microsoft Data Access Components 2.5 Service Pack 2 and Microsoft Windows 2000 Service Pack 2.
Modification Type: | Major | Last Reviewed: | 4/7/2006 |
---|
Keywords: | kbQFE KBHotfixServer kbBug kbfix kbMDAC250SP2fix KB247757 |
---|
|