小编lui*_*rez的帖子

Wia 2.0双向扫描引发异常“ System.outofmemoryException” C#

我在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)

c# wia duplex exception image-scanner

6
推荐指数
0
解决办法
254
查看次数

带有Ubuntu 18.04的指纹uau 4500

我想为u 4500安装驱动程序,但是只能使用旧的内核版本(2.6到3.2)进行编译,您能否帮助我在最新版本的ubuntu上安装驱动程序。

指纹的示例应用程序无法识别该设备。

ubuntu kernel release driver fingerprint

2
推荐指数
1
解决办法
1150
查看次数

标签 统计

c# ×1

driver ×1

duplex ×1

exception ×1

fingerprint ×1

image-scanner ×1

kernel ×1

release ×1

ubuntu ×1

wia ×1