my app is loosing 1.5MB mem per day?!

  • Thread starter Thread starter Matijaz
  • Start date Start date
M

Matijaz

Hello,

I'm getting confused.
I updatec CF to 1.0 SP3.
I call Dispose() for every object which provides it.
I added finalizers and impemented IDisposable interface for each of my
classes.
I had made some statistics with performance counters.
Now I'm checking memory status with GC.GetTotalMemory() &
GlobalMemoryStatus().
It seems that I'm loosing 1kB per minute - circa 1.5MB per day.
GC.Collect() leaves behind some memory unfreed.
I need some assistance from you guys. I do not know where to look for the
problem.

Best regards
Matijaz
 
Hello Ilya,
Are you getting OOM exception at some point?

Yes I do, after 3 weeks of continuous running.
It takes a lot of time to repoduce it. I'm going right now to change memory
division and try to reproduce OOM ex. earlier.

What else can I do?

Regards
Matijaz
 
I'd try to find the leak insead of just resetting every day. After all, the
leak indicates a bug in your app.
 
Hi Chris,

That would be the best solution to find the cause but I'm short of time
right now.
I've been searching this news group archives in google but I can't find any
non commercial tool to trace memory leaks.
My application is quite large I've been trying to exclude each module of the
project but it didn't help at all.
I think that the problem is somehow connected with form controlls.
IS THERE ANY PROCEDURE WHICH MAY HELP TO LOCATE MEMORY LEAK?

Regards
Matijaz
 
Back
Top