System.StackOverflowException error was unhandled - C # ,. NET

How to fix it. This page seems to be dedicated to this error.

enter image description here

+7
source share
2 answers

Your function calls itself forever.
You need to make him stop calling himself.

In this case, you need Invoke use it in the user interface thread instead of just calling it again:

 Invoke(new Action(UpdateAdvert)); 
+14
source

It looks like InvokeRequired is true . This leads to unlimited recursion. There is nothing that will change it to false. Perhaps the call will correct it?

+2
source

All Articles