A generic error occurred in GDI+

后端 未结 10 680
孤城傲影
孤城傲影 2020-12-17 18:17
[ExternalException (0x80004005): A generic error occurred in GDI+.]
   IpitchitImageHandler.Data.ImageRepository.AddNewTempImage(Stream image, String extension, Guid         


        
10条回答
  •  忘掉有多难
    2020-12-17 18:41

    I've got the same error just now and Google help me to find answer: Loading/Saving bitmap causes the locked file.

    Workaround is create othe bitmap, save and let it release:

    Bitmap tmp = new Bitmap(bitmapToBeSaved); tmp.SaveToFile(fileName);

提交回复
热议问题