Memory leak

  • Thread starter Thread starter Gianco
  • Start date Start date
G

Gianco

Hello

I see the quantity of memory available for my program falling down
minute after minute but I don't understand why...

Is there a way to know which are the objects not disposed?

Many thanks
Gianco
 
Do you ever get an out of memory exception, or it simply behavior you're
noticed, but no problem has occurred?

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
Hello

It seems that the first time a form is opened, it 'eats' a quantity of
memory. Then when the same form is opened again and then closed the
memory quantity returns to the original value. I know that the first
time a DLL is loaded it remains in memory but in some forms there
aren't new DLLs (I look the output window) and however happens the
same thing. The problem is that on my device there isn't so much
memory and after the user navigates in different forms the system
begins to work with in low memory conditions. Maybe CF stores in a
cache some data for each form??? In this case is possible to empty
this cache?

Gianco
 
What do you mean works under low memory conditions? Use the performance
counters and other methods described on the link I sent you to get some hard
numbers rather than state "a quantity" or "some".

If you are not getting an OutOfMemoryException you don't have a problem.
Replicate your problem in a scenario where you get the exception and then we
can look at it.

Just as a FYI, if you are opening forms with ShowDialog you should Dispose
of them when they are closed.

Cheers
Daniel
 
Back
Top