FIX: SP_OA Procedures Leak Memory and Cause Various Errors

Article translations Article translations
Article ID: 282229 - View products that this article applies to.
This article was previously published under Q282229
BUG #: 351363 (Shiloh_bugs)
Expand all | Collapse all

On This Page

SYMPTOMS

Calling OLE Automation support stored procedures, namely sp_OAMethod, sp_OAGetProperty, and sp_OASetProperty, leak a small amount of memory in the OLE Automation Object operation DLL (Odsole70.dll) file. This may cause the following errors to be reported in the SQL Server error log:
2000-11-27 11:22:59.87 server SQL Server could not spawn process_loginread thread.
2000-11-27 11:25:09.42 server SQL Server could not spawn process_loginread thread.
Sometimes, the following error has also been reported:
2000-11-27 11:55:06.09 spid431 WARNING: Failed to reserve contiguous memory of Size= 65536.
2000-11-27 11:55:06.09 spid1714 WARNING: Failed to reserve contiguous memory of Size= 65536.

In very rare situations, this may also result in the termination of the SQL Server process. Note that the preceding symptoms usually occur a long time after the server was started and only when the OLE Automation stored procedures are used frequently.

CAUSE

When calling any of the sp_OA procedures, a string that was allocated was not freed, leaking few bytes on each call. The size of the leak is not fixed and is dependent on the string.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix

NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 1.

The English version of this fix should have the following file attributes or later:
   File name   Platform
   ----------------------

   s80231i.exe  X86
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.

STATUS

Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Properties

Article ID: 282229 - Last Review: October 9, 2003 - Revision: 3.1
APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
Keywords: 
kbbug kbfix kbqfe kbsqlserv2000sp1fix KB282229

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com