Memory Leak changing images in Windows Phone 7

后端 未结 2 891
小鲜肉
小鲜肉 2021-01-20 20:24

I have a problem when I change multiple times the image of an Image Container in the Windows Phone 7.5

Here\'s the faulty code:

public void displayIm         


        
2条回答
  •  生来不讨喜
    2021-01-20 20:53

    It is hard to pinpoint from the code snippets in the post the cause of the memory leak. One suggestion is to look for short lived objects subscribing events on objects with longer lifetimes. You should profile your application to see what's going on in managed memory like objects surviving, etc. Check out Memory Profiling for Application Performance blogpost to see how you can use the profiler to detect memory issues.

提交回复
热议问题