diff --git a/Pocsag.Plugin/PocsagControl.cs b/Pocsag.Plugin/PocsagControl.cs index 3cf8225..2a94f64 100644 --- a/Pocsag.Plugin/PocsagControl.cs +++ b/Pocsag.Plugin/PocsagControl.cs @@ -59,6 +59,11 @@ private void MessageReceived(Pocsag.Message message) this.bindingList.Add(message); + while (this.bindingList.Count > 1000) + { + this.bindingList.RemoveAt(0); + } + if (lastVisible == lastIndex) { this.dataGridView1.FirstDisplayedScrollingRowIndex = firstDisplayed + 1;