Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Cross Threading to Error or Not to Error
posted

Hi, Can somebody please explain the following to me. If I try to change a UltraLabels Text or UltraButtons text and I have not checked to see if Invoke is required then I get an Error messages telling me so (Which is what I want when debugging so I can fix it) now what I cannot seem to make happen is an Cross Thread Error when I read an UltraLabels text or UltraButtons text. If I stop my code at a specific line where I know I'm going to read an objects text (or anything else) I can see that the text parameter says {"Cross Thread Operation not Valid.....} yet my code continues with no error.

It is my understanding that you must Invoke when ever you SET/GET any info from an object that was created on another thread.

Is this the correct behavior? or do I not have a setting for checking this activated? I can see that the CheckForIllegalCrossThreadCalls is set to true.

As the code continues with no error what is this actually doing to my program as it does seem to be reading the text correctly of the label or button?

Thank You

-Paul

Parents
No Data
Reply Children