1. call this.pictureBox1.Image.Dispose() before you open the file the second time2. why not tryMemoryStream ms = new MemoryStream(myData);
Bitmap b = new Bitmap(ms);
pictureBox1.Image = b;
Bitmap b = new Bitmap(ms);
pictureBox1.Image = b;
调试欢乐多
因为该文件正由另一进程使用。