7

How to fix it. It look like this page is dedicated to that kind of error.

enter image description here

6
  • 11
    This site is named after Stack Overflow exceptions; it isn't dedicated to them. Commented May 9, 2011 at 15:45
  • 4
    This site does have answers for a few other questions as well :) Commented May 9, 2011 at 15:46
  • 7
    first laugh of the day - thanks! Commented May 9, 2011 at 15:46
  • 7
    Sadly, a stack overflow is becoming a tricky error to find information on using Google. Commented May 9, 2011 at 15:47
  • 3
    if InvokeRequired then an Invoke is required Commented May 9, 2011 at 15:49

2 Answers 2

14

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));
Sign up to request clarification or add additional context in comments.

Comments

2

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

Comments

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.