Microsoft KB Archive/829697

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

Article ID: 829697

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional Edition
 * 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 &quot;Applies to&quot; section.

Additional query words: ras heap bytes

Keywords: kbbug KB829697

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.