我在C#上使用WIA。当我将属性“页面”设置为1并将“文档处理选择”设置为5(以启用AFD和双面扫描)时,方法“ wiaCommonDialog.ShowTransfer”出现异常。
例外是“ System.OutOfMemoryExcepion”。
你能帮我解决吗?我使用正确的值吗?
try
{
SetWIAProperty(device.Properties, "3096", 1);//pages to 1
SetWIAProperty(device.Properties,"3088",5);//Handling select to 5
if (init == false)
{
init = true;
}
wiaCommonDialog = new WIA.CommonDialog();
while (true)
{
object imgFile = (ImageFile)wiaCommonDialog.ShowTransfer(item,WIA.FormatID.wiaFormatJPEG,false);//Here the exception is shown
object imgFile2=(ImageFile)wiaCommonDialog.ShowTransfer(item, WIA.FormatID.wiaFormatJPEG, false);
if (imgFile != null)
{
imagenes.Add((ImageFile)imgFile);
leyo = true;
}
if (imgFile2 != null)
{
imagenes.Add((ImageFile)imgFile2);
leyo = true;
}
}
}
Run Code Online (Sandbox Code Playgroud) 我想为u 4500安装驱动程序,但是只能使用旧的内核版本(2.6到3.2)进行编译,您能否帮助我在最新版本的ubuntu上安装驱动程序。
指纹的示例应用程序无法识别该设备。