pftq
Administrator
Offline
Posts: 4204
|
|
« on: December 05, 2012, 05:35:37 PM » |
|
<h2>Things not to do and things to remember about C#...</h2>
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).
|