Hello everyone.
I have a windows multi-threded console application that appears to be leaking approximately 4kb private memory every minute or so.
In an effort to localise the leak, I have gradually suspended each thread in the application until the leak stopped, and to my surprise the culprit seems to be a thread named "Win32Thread".
It does not look like a thread I have explicitly started.
If I attach and break the application, the stack trace looks like this:
ntdll.dll!_KiFastSystemCallRet@0()
ntdll.dll!_NtCancelTimer@8() + 0xc bytes
ntdll.dll!_RtlpResetTimer@12() + 0x15 bytes
> ntdll.dll!_RtlpServiceTimer@12() + 0xfd bytes
ntdll.dll!_KiUserApcDispatcher@16() + 0x25 bytes
kernel32.dll!_BaseThreadStart@8() + 0x34 bytes
Does anyone have any idea why this would suddenly leak?
The application as been running for about a 40hrs on a Win2k3 SP2 dual core system.
Any ideas are greately appreciated.