diff --git a/Implab.Diagnostics.Interactive/InteractiveListener.cs b/Implab.Diagnostics.Interactive/InteractiveListener.cs --- a/Implab.Diagnostics.Interactive/InteractiveListener.cs +++ b/Implab.Diagnostics.Interactive/InteractiveListener.cs @@ -112,7 +112,7 @@ namespace Implab.Diagnostics.Interactive Indent = args.Operation.Level, Message = entry.ToString(), Thread = args.ThreadId, - Channel = args.ChannelName, + Channel = args.Channel.ToString(), Timestamp = Environment.TickCount }; diff --git a/Implab.Diagnostics.Interactive/TraceForm.cs b/Implab.Diagnostics.Interactive/TraceForm.cs --- a/Implab.Diagnostics.Interactive/TraceForm.cs +++ b/Implab.Diagnostics.Interactive/TraceForm.cs @@ -31,7 +31,8 @@ namespace Implab.Diagnostics.Interactive public void AddTraceEvent(TraceViewItem item) { traceViewItemBindingSource.Add(item); - eventsDataGrid.FirstDisplayedScrollingRowIndex = eventsDataGrid.RowCount - 1; + if(eventsDataGrid.RowCount > 0) + eventsDataGrid.FirstDisplayedScrollingRowIndex = eventsDataGrid.RowCount - 1; } Color GetThreadColor(int thread) {