Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.
I get this error above at random times when developing in the IDE. This is a new project that I've been working on for about 2 months now and have not distributed it, so I can't say if it will happen once it has been compiled and distributed.
There doesn't seem to be any rhyme or reason to it. It seems to happen either just before or just after anyone of 3 or 4 dialogs that I've designed are opened or closed. Some of these I show as modal and others I don't. If I try and duplicate the error I can't.
When it happens the program does not break on any code line. The program's UI goes away, the compiler is still running, and the error comes up. If I click on 'Continue' on the error dialog I am not taken back to the program. At that point I must stop the compiler and restart to get back to the program.
You'll notice that no control is listed in the error, so I am completely stumped by this. Has anyone else ever encountered anything like this?
Greg