I have this memory consumption leak,
I have a code that is repeated over and over, it couses no memory run out and is constant about memory, but if I add following instructions to this correct code, allocated memory just gets bigger and bigger. This is the instruction that couses the code to leak when added to.
byte buff = new byte; client.m_pRHandle = client.m_pStream.BeginRead(buff, 0, 4000, null, null); int redbytes = client.m_pStream.EndRead(client.m_pRHandle);
client.m_pStream - is a NetworkStream type
client.m_pRHandle - is a IAsyncResult type
Edited by JohnnyCode, 22 May 2012 - 04:27 PM.