I tested the program I am writing and received this error message: Cross-thread operation not valid: Control 'lblStatus' accessed from a thread other than the thread it was created on
The code is a bit massive, and I'm not sure which part is causing this error to accommodate a smaller segment. However, there is information that may be helpful.
I do not use any "threads" explicitly. I assume that something else automatically creates multiple threads - I use the Wii remote hardware access library, and I do the graphics.
The stack trace indicates that the call is made by the on change event handler, which calls the function within which it is lblStatustrying to be changed, but not executed.
I was wondering how you are debugging these types of errors. I am using Visual Studio 2008.
EDIT
One thing I want to clarify, I do not know how this other thread even came. How can I find this? source of another thread.
source
share