C# WIA Image Scanning fails with HRESULT: 0x80070050

前端 未结 2 1370
礼貌的吻别
礼貌的吻别 2021-01-21 13:17

I\'m hoping someone has come across this - I\'m trying to capture images from a document scanner using WIA, however on random machines when attempting to transfer the image resu

2条回答
  •  Happy的楠姐
    2021-01-21 14:13

    I came across this same problem when trying to use WIA to read images off of a camera device. The proper solution is to dispose of the WIA.ImageFile properly. This cleans up the tmp file.

    Marshal.ReleaseComObject(Image1);
    

    I found this on CodePrjoct, link

提交回复
热议问题