pftq.com
Blabberbox » 42 » CSharp Notes and PitfallsShare on Twitter

CSharp Notes and Pitfalls

December 5th, 2012 | Posted by pftq in 42 | #

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)

Leave a Comment

Name: (Have an account? Login or Register)
Email: (Won't be published)
Website: (Optional)
Comment:
Enter the code from image: