A
Alvin Bruney
I dispensed some advice and its bugging me that it may not be 100% accurate.
Worker threads should not touch main thread objects. Everybody knows that
but if you pass a reference to a form object to a worker thread and you
touch that form on the worker thread. All is well.
Is that right? Will all really be well? It's a reference to the form object.
The worker thread is still modifying the main threads object, reference or
not, without using control invoke - that is, it isn't getting modified from
the thread owning the object in the correct way.
I'm not sure I now agree that this is safe. Infact I now realize that this
is absolutely wrong.
Any help here?
Worker threads should not touch main thread objects. Everybody knows that
but if you pass a reference to a form object to a worker thread and you
touch that form on the worker thread. All is well.
Is that right? Will all really be well? It's a reference to the form object.
The worker thread is still modifying the main threads object, reference or
not, without using control invoke - that is, it isn't getting modified from
the thread owning the object in the correct way.
I'm not sure I now agree that this is safe. Infact I now realize that this
is absolutely wrong.
Any help here?