Disposing strings -- Memory Issue

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top