CSharp Notes and Pitfalls
Things not to do and things to remember about C#...
Just notes and things I want to remember when I'm coding C#. Sometimes these things take hours to catch when the fix is simple, if you knew about them in advance.
RichTextBox.Text - do not update in a background thread even if each thread has its own RichTextBox (building multiple control objects in parallel, for example). This will cause a memory corruption error and either cause your program to crash or hang every so often (which makes it even harder to notice).
1040 unique view(s)