A memory leak occurs in the Svchost.exe process that hosts a TAPI in Windows 2000 (829697)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Advanced Server

SYMPTOMS

If you have an application that uses the Microsoft Telephony API (TAPI) to provide Telephony services and the application repeatedly calls the LineInitialize() function and the LineShutdown() function to load the TAPI service provider, a memory leak may occur in the Svchost.exe process that is hosting the TAPI.

CAUSE

This problem occurs because the TAPI relies on remote procedure calls (RPCs) to talk to the TAPI service provider. RPCs use thread local storage that cannot be deallocated unless a thread-detach call occurs.

WORKAROUND

To work around this problem, make the application call the LineInitialize() function and leave the line in this state when you develop an application that uses the TAPI services extensively. Your application can then use the TAPI services, and the memory leak will not occur when the TAPI service providers are unloaded.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MajorLast Reviewed:5/4/2004
Keywords:kbBug KB829697 kbAudDeveloper