开发者

Memory Clean Up in Windows Phone Mango

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜