I get the ContextSwitchDeadlock Error when I set try to RichTextBox text to some large text, empty it and then set it to some other large text again.
This is what I'm doing:
1. RichTextBox1.Text = SomeLargeString
2. RichTextBox1.Text = EmptyString
3. (do some other stuff here)
4. RichTextBox1.Text = SomeOtherLargeString
The SomeOtherLargeString is smaller than SomeLargeString, but error occurs on that line.
Anyone has any ideas about this?
Pradeep, Microsoft MVP (Visual Basic) Please appreciate posts that have helped you by clicking icon on the left of the post.
"A problem well stated is a problem half solved." — Charles F. Kettering