コード例 #1
0
        public void ExcuteAnalyzeFile()
        {
            if (FilePath == "")
            {
                State = "请输入文件路径";
                return;
            }

            State = "解析中...";
            Task.Factory.StartNew(() =>
            {
                try
                {
                    HeapFileAnalyzer x = new HeapFileAnalyzer(FilePath);

                    x.DoWork();
                    Msgs  = LineHelper.GetMessages(x);
                    State = "解析完成!";
                }
                catch
                {
                    State = "解析出现异常";
                }
            });
        }