Reputation: 1405
How i can implement memory clean up in WP7? Does GC.Collect() do the trick? or need clean up manually?
Upvotes: 3
Views: 2127
Reputation: 84744
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).
Upvotes: 0
Reputation: 26344
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
Upvotes: 3