Microsoft KB Archive/319355

= BUG: Use of FPC.Arrays Property Causes Memory Leak =

Article ID: 319355

Article Last Modified on 7/10/2002

-

APPLIES TO


 * Microsoft Internet Security and Acceleration Server 2000 Standard Edition
 * Microsoft Internet Security and Acceleration Server 2000 Service Pack 1

-



This article was previously published under Q319355



SYMPTOMS
When an Internet Security and Acceleration (ISA) server is a member of the array, if you use the FPC.Arrays property, a memory leak occurs.



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



MORE INFORMATION
The following code sample demonstrates this problem. void leak {   HRESULT hr; hr = CoInitializeEx( 0, COINIT_MULTITHREADED ); if (hr == S_OK) {                FPCLib::IFPCPtr sipFPCRoot; FPCLib::IFPCArraysPtr sipArrays; FPCLib::IFPCArrayPtr sipArrayObj; // Create the ISA root object. if ((hr = sipFPCRoot.CreateInstance(&quot;FPC.Root&quot;)) == S_OK) {              Sleep(3000);
 * 1) import &quot;C:\\Program Files\Microsoft ISA Server\\msfpccom.dll&quot;
 * 2) include 

sipArrays = sipFPCRoot->Arrays; // leaks sipArrayObj = sipArrays->GetContainingArray;

// The following equivalent calls leaks too. // sipArrayObj = sipFPCRoot->Arrays->GetContainingArray; }   }

CoUninitialize; return; }

int main { while (true) leak;

return 0; }

