1.img为WP8中的img控件,要想完全清空内存,请用以下代码
if (img != null)
{
try
{
((BitmapImage)img.Source).UriSource = null;
}
catch (Exception)
{
}
img.Source = null;
img = null;
}
img = null;