问题
My code:
var bitmap = new Bitmap(filePath);
...
bitmap.Dispose(); <--- Fails here
Out of 30k images in a folder (remote UNC share) , it failed on 2 files with the Generic error occurred in GDI+
when calling .Dispose
.
What are some of the reasons this could happen?
来源:https://stackoverflow.com/questions/56027141/generic-error-occurred-in-gdi-when-disposing-the-bitmap