开发者

Memory Clean Up in Windows Phone Mango

开发者 https://www.devze.com 2023-04-06 14:42 出处:网络
How i can implement memor开发者_Python百科y clean up in WP7? Does GC.Collect() do the trick? or need clean up manually?You don\'t need to manually clean up memory on Windows Phone. You shouldn\'t call

How i can implement memor开发者_Python百科y clean up in WP7? Does GC.Collect() do the trick? or need clean up manually?


You don't need to manually clean up memory on Windows Phone. You shouldn't call GC.Collect() unless it's absolutely necessary.

I would recommend you read this article: Windows Phone 7 App Development: When does the GC run


As Claus mentioned, the GC handles memory cleanup for you. If you are asking because you are running into memory usage issues, you can use the profile your memory usage using the Windows Phone Profiler (as long as you are targetting 7.1).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号