I have some sort of following code in my windows form application (I am basically a backend api developer doing some small app support of winform app at the moment)
var form2 = new frmTicketsList(this);
form2.Closed += (s, args) => this.Close();
form2.Show();
this.Hide();
Every now and then I am getting a memory overflow exception at line
form2.Closed += (s, args) => this.Close();
Any ideas to what the problem could be?