From 65b636ca711bb78b5570b3cc1d98b6a06b5c7b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Tue, 11 Apr 2006 13:43:57 +0000 Subject: [PATCH] Fixed Forum-3288: Exception when Threads pad opened for running application git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1281 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Pads/RunningThreadsPad.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs b/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs index 0c81bb734a..ea5f981eed 100644 --- a/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs +++ b/src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs @@ -115,10 +115,12 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads item.Text = thread.ID.ToString(); item.Tag = thread; item.SubItems.Add(thread.Name); - Function location; - location = thread.LastFunctionWithLoadedSymbols; - if (location == null) { - location = thread.LastFunction; + Function location = null; + if (thread.Process.IsPaused) { + location = thread.LastFunctionWithLoadedSymbols; + if (location == null) { + location = thread.LastFunction; + } } if (location != null) { item.SubItems.Add(location.Name);