Microsoft KB Archive/207576

{|
 * width="100%"|

FIX: Memory Leak in OpenClusterNode Function Call

 * }

Q207576

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK)
 * Microsoft Cluster Server

-

SYMPTOMS
OpenClusterNode leaks 528 bytes of memory each time it is called. Closing the handle does not release the memory. Restarting the application releases the memory.

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

This problem was corrected in Windows NT 4.0 Service Pack 4.

MORE INFORMATION
To compile the code in Visual C++ 6.0:


 * 1) Create a default Win32 Console application named "OpenNode".
 * 2) On the Project menu, click Settings, click the Link tab, and then add the file Clusapi.lib.
 * 3) Paste the following code into the .cpp file:

To Reproduce This Problem on a Service Pack 3 (SP3) Cluster

 * 1) Start Performance Monitor (Perfmon).
 * 2) Start a command window. From the OpenNode debug directory, run Open -1. This action pauses the application for 10 seconds.
 * 3) In Perfmon, click Edit, and then click Add To Chart. In the Add To Chart dialog box, select Process for Object, select Working Set for Counter, and select OpenNode for Instance. Click Add.
 * 4) Wait until OpenNode has completed executing.
 * 5) Run OpenNode again. You should see the working set for OpenNode steadily climbing.

Additional query words:

Keywords : kbcluster

Issue type : kbbug

Technology : kbAudDeveloper kbClustServSearch kbSDKSearch kbWinSDKSearch