Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
How to fix it. It look like this page is dedicated to that kind of error.
if InvokeRequired then an Invoke is required
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
Invoke(new Action(UpdateAdvert));
Add a comment
It appears that InvokeRequired is true. This causes unbounded recursion. There's nothing that will change it to false. Perhaps invoking would fix it?
InvokeRequired
true
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
if InvokeRequired then an Invoke is required