PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Disposing strings -- Memory Issue

Reply

Disposing strings -- Memory Issue

 
Thread Tools Rate Thread
Old 21-06-2007, 03:56 PM   #1
=?Utf-8?B?TXVydGh5?=
Guest
 
Posts: n/a
Default Disposing strings -- Memory Issue


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


  Reply With Quote
Old 21-06-2007, 07:13 PM   #2
Guest
 
Posts: n/a
Default Re: Disposing strings -- Memory Issue

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


"Murthy" <Murthy@discussions.microsoft.com> wrote in message
news:BCCC98D0-6C88-4366-B49D-E0C05FDE6D0A@microsoft.com...
> 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
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off