public override void ThreadFunc() { snapshotB = new PackedMemorySnapshot(); snapshotB.LoadFromFile(pathB); snapshotB.Initialize(); tree = control.BuildTree(snapshotA, snapshotB); }
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); }