OrchardSoftware / 4D-Win32API

Win32API is a plugin for 4th Dimension that lets your Windows applications take advantage of Windows-specific features that are not exposed by native 4th Dimension commands. Win32API lets you set a custom icon for any window, change the name of your 4D application in the title bar and task bar, customize file open and save dialogs, get information from the Regional Settings control panel, and much more.
MIT License
13 stars 9 forks source link

Error with TWAIN_AcquireImage and getMultiple #38

Open AlfonsoIdem opened 5 years ago

AlfonsoIdem commented 5 years ago

Hi,

With 4D v17R6 (last) and windows 10 - 64 bits. Fujitsu fi-800R (Duplex) Driver for fujitsu fi-800R (32 bits) : PaperStream IP fi-800R If I scan normal (no duplex) $lErr:=TWAIN_AcquireImage (1;””;0;0;0) it's work fine. Scannig with the command TWAIN_AcquireImage as your example (Duplex): After executeed $lErr:=TWAIN_AcquireImage (1;””;0;1;0) Windows create a message error that I can not see, and freeze the scan process. I have to kill the procces (TWAIN_AcquireImage , in the system) for 4D continue.

It's a problem with driver ? Any solution ?

T.I.A.

AlfonsoIdem commented 5 years ago

I have try also your example:

ARRAY PICTURE($agPics;0) While ($lOffSet<BLOB size(xTWAINBLOB)) BLOB TO VARIABLE(xTWAINBLOB;$xBlob;$lOffset) BLOB TO PICTURE($xBlob;gPic) $f:=Picture size($gPic) SET PICTURE TO PASTEBOARD($gPic) APPEND TO ARRAY($agPics;$gPic)

        End while 

And it doesn't work In the line: BLOB TO VARIABLE(xTWAINBLOB;$xBlob;$lOffset) OK get 0

T.I.A.

AlfonsoIdem commented 5 years ago

At time of execute $lErr:=TWAIN_AcquireImage (1;””;0;0;0). The scanner scan the document but 4D freeze waiting for an answer by the plugin. I have observed in Administration tasks, that a process named Orchad Utilities(32 bits) is waiting for someting. But I could not see any window message. If I Kill this process in Windows System then 4D continuous with the process and I get the 2 images OK. Are you aware about this problem ?