Browse Source

fix warning in PerformanceCounterDescriptor

pull/787/head
Siegfried Pammer 14 years ago
parent
commit
2064ac350c
  1. 4
      src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs

4
src/AddIns/Analysis/Profiler/Controller/Data/PerformanceCounterDescriptor.cs

@ -130,9 +130,11 @@ namespace ICSharpCode.Profiler.Controller.Data
try { try {
this.Values.Add(counter.NextValue()); this.Values.Add(counter.NextValue());
} catch (Exception e) {
#if DEBUG #if DEBUG
} catch (Exception e) {
Console.WriteLine(e.ToString()); Console.WriteLine(e.ToString());
#else
} catch (Exception) {
#endif #endif
this.Values.Add(defaultValue); this.Values.Add(defaultValue);
} }

Loading…
Cancel
Save