C# Threading Bitmap objects/PictureBox
问题 I have some code to display video-like graphics of points moving around. I am writing the points to a bitmap, and placing it on a picturebox. The graphics computation has to be done on its own thread. The graphics work fine as long as you don't move the window around "too" much. I'm using winforms. When I run the code, and move the window around wildly, I SOMETIMES get the following errors: @ this.Invoke(d, new object[ ] { bmp }); "Cannot access a disposed object. Object name: 'Form1'." @ gfx