0

内存图

我创建了一个示例应用程序,其中有两个页面。
第一页包含按钮,点击它进入第二页。在第二页中有一个包含 100 个元素的列表。
在这个示例中,我从第二页来回导航。

那么为什么这个内存在增加,为什么在返回第一页时没有完全下降,为什么页面析构函数永远不会被调用

        using System;
        using System.Collections.Generic;
        using System.Linq;
        using System.Net;
        using System.Windows;
        using System.Windows.Controls;
        using System.Windows.Navigation;
        using Microsoft.Phone.Controls;
        using Microsoft.Phone.Shell;
        using System.Windows.Media.Imaging;
        using System.IO;
        using System.Diagnostics;

        namespace PhoneApp1
        {
            public partial class Page1 : PhoneApplicationPage
            {
                public Page1()
                {
                    InitializeComponent();
                    for (int i = 0; i < 100; i++)
                    {
                        listBitmapImage.Add(new Test(i));
                    }
                }

                List<Test> listBitmapImage = new List<Test>();
                protected override void OnRemovedFromJournal(JournalEntryRemovedEventArgs e)
                {
                    base.OnRemovedFromJournal(e);
                }

                ~Page1()
                {
                    Debug.WriteLine("IN DESTRUCTOR");
                }
            }

            public class Test
            {
                int _a;
                string img = "iVBORw0KGgoAAAANSUhEUgAAALEAAACzCAMAAADxPw38AAADAFBMVEXCwsI9P0DGxsYiIVQiIVUjIlje39/W1tbQ0NDPz8+Wl5jLy8tQUVWPkJEiIVeCg4Pf4ODW1tYkI1kkI1mJiouDhYW5urri4uLY2dnX19ckJFEwMjKen5+6u7uoqKiCg4O+v7/b3NwrLEeur6+xsbKcnZ2+v784OUDj4+PY2Njg4eHf4ODGx8c0NEmoqanR0dLMzMw5OkNhYmK6u7vc3d3T09TQ0NHc3d0MDg8GCQkjIlfh4eF9fn/BwsKQkZLi4uJcXl7V1dUSFBQGCQkFBwgFCAkHCQkEBwcFBwgGCAkGCAkFCAoGCAoGCAgEBwcGCAoQEhIGCAkFCAk9PkAAAAC+tq4qKkKDa1T6xL2KZkSae3H70875vLXTtZbCzM76/P37ysTJnmwTDwq2gUrSr4f5sqmXVCOuuLrYupq+i07w5NWRWiPiy7Ovdjz06+Hcwabi7vEUFhaAfHnq2c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Nh75ysmKppez4W3Ic7WqHwCIuacqWpMKat73R6M1y6FoNPEQpGOB7L+HNKSa+1OdOQAKpNpfGhGntcVw3/h2MtZGPbEMK09aQaIvDuuBs0gxQjnqUlU+fdprVPjCFvU5QhoiCypwBcHtNSZigDzXZPW/L04nmvvtDNpKdWbK9sMUQlRRlaituUq1b4CHEzaESJaa3p5zVx1XLCnJZkeXc06GSuJ7Sp4AzD0hdgnzEKHyXLSb8OH+TFV9ivqxhZYvpdf36+Hou6SZC4Xm+y/JrbOggFE8TQphII5H6uy8Hf7u4DRNS33SZIyFeCjDgxe8pC7OcxZdEMy5CsnDGRL8dcdHf3RXNwfm3KBOrfB0XMfgmkj7fHnIXzVj09fcmo6asWjfGAk4IK9htcPBcufmnVXLdXvE3fovfgv7nSH86ziCVwHIjng82PL+JeeDihw/fj+fGFYvzXD75fwTnPIpDJsclkAoW1dmQyGd2AfeDfXDnC9r8dks5B15XK3QAAAABJRU5ErkJggg==";
                string img_1, img_2, img3, img4;

                public Test(int a)
                {
                    _a = a;
                    img = a + img;
                    img_1 = a + "1" + img;
                    img_2 = a + "2" + img;
                    img3 = a + "3" + img;
                    img4 = a + "4" + img;
                    Debug.WriteLine("CONSTRUCTOR:{0}", _a);
                }

                ~Test()
                {
                    Debug.WriteLine("DESTRUCTOR:{0}", _a);
                }
            }
        }

这是下载示例项目的链接。

4

1 回答 1

0

如果您使用的是 BitmapImage,它已经在 windows phone 8 中出现了内存问题。这可能是您遇到内存问题的原因。请在此处找到类似的问题

这个链接也让你对这个问题有更多的了解

于 2013-10-09T11:10:32.947 回答