Browse Source

Handle AbandonedMutexException in Profiler.AllThreadsWait().

pull/14/head
Daniel Grunwald 15 years ago
parent
commit
ba7eb2729b
  1. 5
      src/AddIns/Analysis/Profiler/Controller/Profiler.cs

5
src/AddIns/Analysis/Profiler/Controller/Profiler.cs

@ -559,7 +559,12 @@ namespace ICSharpCode.Profiler.Controller @@ -559,7 +559,12 @@ namespace ICSharpCode.Profiler.Controller
bool AllThreadsWait32()
{
try {
this.threadListMutex.WaitOne();
} catch (AbandonedMutexException) {
// profilee crashed while holding the thread list mutex
return true;
}
bool isWaiting = true;

Loading…
Cancel
Save