How to fix开发者_如何学C it. It look like this page is dedicated to that kind of error.
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?
精彩评论