Hi
I'am writing a multithread application. This application has let say label1.
This label of course has it's own thread.
Then the question is:
Can i read label1.Text without invoking it just by using such a syntax in
other threads?:
lock(label1)
{
.....
}
Does it prevent from cross-read/write operations?
And one more short question is if i have to use this.invoke when i want to
write to this label1 ( if in previous example it wasn't necessary )?
Thanks or any suggestions
PK
I'am writing a multithread application. This application has let say label1.
This label of course has it's own thread.
Then the question is:
Can i read label1.Text without invoking it just by using such a syntax in
other threads?:
lock(label1)
{
.....
}
Does it prevent from cross-read/write operations?
And one more short question is if i have to use this.invoke when i want to
write to this label1 ( if in previous example it wasn't necessary )?
Thanks or any suggestions
PK
Comment