I wrote something in C# like
while(1){
Bitmap b = BitMapFromSomewhereElse();
b.save("a.jpg");
}
in order to let the image update real-time. But I always get System.Runtime.InteropServices.ExternalException: Generic error in GDI+
What's the problem here? Maybe I'm writing too fast, if I do this loop 500ms a time, the error will come out after several seconds, and if I do this 5000 ms a time, the error does not appear. I searched and tried a lot of methods, like calling Dispose() or using(b=...)... but none of those worked.