From: hari on
Hello,

I am working on an Application for a WINCE device. I have written my
application in C# (Compact framework)which runs on a WINCE device. In my C#
code i will call the C/C++ functions also. Now I am facing the problem of
memory leak.

Anybody please tell me how to find the memory leaks in C# device applications?

Thanks in advance.
From: aevans on
On 18 Mar, 10:06, hari <h...(a)discussions.microsoft.com> wrote:
> Hello,
>
> I am working on an Application for a WINCE device. I have written my
> application in C# (Compact framework)which runs on a WINCE device. In my C#
> code i will call the C/C++ functions also. Now I am facing the problem of
> memory leak.
>
> Anybody please tell me how to find the memory leaks in C# device applications?
>
> Thanks in advance.

I used the remote performance monitor.. There is a blog posting here
on how to use it:
http://blogs.msdn.com/stevenpr/archive/2007/03/08/finding-managed-memory-leaks-using-the-net-cf-remote-performance-monitor.aspx

You can take a snap shot of the GC heap before and after using the app
to see where you have objects lying around... Took me a while but
eventually removed most of the problems from our app.