开发者

System.StackOverflowException was unhandled - C#, .NET

开发者 https://www.devze.com 2023-03-04 12:44 出处:网络
How to fix开发者_如何学C it. It look like this page is dedicated to that kind of error. Your function is calling itself forever.

How to fix开发者_如何学C it. It look like this page is dedicated to that kind of error.

System.StackOverflowException was unhandled - C#, .NET


Your function is calling itself forever.
You need to make it stop calling itself.

In this case, you need to Invoke it to the UI thread instead of simply calling itself again:

Invoke(new Action(UpdateAdvert));


It appears that InvokeRequired is true. This causes unbounded recursion. There's nothing that will change it to false. Perhaps invoking would fix it?

0

精彩评论

暂无评论...
验证码 换一张
取 消