Generic error occurred in GDI+ when disposing the bitmap

丶灬走出姿态 提交于 2019-12-11 16:58:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!