Cross-thread operation not valid ?

FasTik

New member
Joined
Feb 7, 2025
Messages
1
Programming Experience
Beginner
This one seems a bit odd. I am developing a program and most of the time, when run via the debugger, it works just fine. However, on occasion, an ‘InvalidOperationException crossed a native/managed boundary’ error with details ‘Cross-thread operation not valid..’ is thrown. If I click continue, the program continues to operate properly. This strikes me as being very odd – can you suggest what is happening?
 
You need to do more investigation into when it happens, i.e. EXACTKLY what you're doing in your app when it happens. You also need to look at the exception more closely and get ALL the information that it provides. You also need to look at your own code and see where you are or may be accessing a control from a different thread. The information you've provided is just too vague.
 
Back
Top