Results 1 to 5 of 5

Thread: ContextSwitchDeadlock Error

Threaded View

  1. #1

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    ContextSwitchDeadlock Error

    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?
    Attached Images Attached Images  
    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

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width