Пример #1
0
 public override void ThreadFunc()
 {
     snapshotB = new PackedMemorySnapshot();
     snapshotB.LoadFromFile(pathB);
     snapshotB.Initialize();
     tree = control.BuildTree(snapshotA, snapshotB);
 }
Пример #2
0
        void LoadFromFileThreaded(object userData)
        {
            var filePath = userData as string;

            snapshotPath = filePath;

            m_Heap = new PackedMemorySnapshot();
            if (!m_Heap.LoadFromFile(filePath))
            {
                m_ErrorMsg = string.Format("Could not load memory snapshot.");
                return;
            }

            m_Heap.Initialize(filePath);
        }