PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Disposing strings -- Memory Issue
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Disposing strings -- Memory Issue
![]() |
Disposing strings -- Memory Issue |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

