Disposing strings -- Memory Issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI,
I am developing an Multi Lingual application for Windows Mobile 5.0. I am
using different Resource files for different languages and then i am loading
the UI strings at runtime based on the Language selected.

But as i am moving from the first form to the next form. I am closing all
the forms except the first form.
But the No. of string objects [More than 1500] are not getting reduced at
all in the GC Memory Heap [I used remote Performance monitor for this] even
after 10- 15 Min... the Memory is going on reducing...and string objects are
the one which are taking up most of th memory....Is there anyway that i could
dispose all these strings.

Thanks,
Murthy
 
If they're not being released, it sounds like they still have roots. Use
RPM 3.5 to find where those roots are and make sure they are destroyed when
you're done with the string.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Back
Top