简体   繁体   中英

Memory Consumtion is very highy on wp7 app

I am testing my wp7 app and it taking 85MB on Peak memory that is very near to 90MB Limit by Microsoft. How I can reduce that memory consummation.

In my application. I have one panorama page and 3 4 other pages. On panorama page I am loading contacts and showing in my long-list selector. I checked on profile it showing some warnings on Navigation. How To Catter That. What is Best Practices in That Scenario.

=== UPDATE ===

  1. Should I Empty My Listbox Mean Assign Null As Itemsource on OnNavigatedFrom Event

  2. Call GC.Collect() On OnNavigatedFrom Event

  3. In the OnNavigatedTo, I manually calls NavigateService.RemoveBackEntry() to remove the page from backstack and then call GC.Collect()

这里有一些技巧,从技巧5可能对您来说很有趣。

Click here for read a good article to explain lot off good practices for windows phone. (for limit memory usage too ^^)

I have found that using a Panorama is extremely expensive memory-wise and ended up switching to a Pivot. If you have that option, it may be your best bet. Not sure if there are any real answers here, but here is a thread where this issue is discussed.

Panorama Memory Usage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM