TwainAcquireToGdPictureImage closes VRS
TwainAcquireToGdPictureImage closes VRS
Hi Team,
im facing an performance issue right now.
At startup, I am initializing my Scanner, in this case a Fujitsu fi 6670a with an AIPE-Card. On scanner.Open(), a VRS ( Kofax Virtual Rescan) Profile is loaded in the Taskbar which preprocess the Twainstream. Everything is fine till this point of time.
Now I scan a document and everything is working. The function TwainAcquireToGdPictureImage(mHandle) return a valid id and the process is working well. Except, the method is closing my VRS Profile in the taskbar.
At the moment, the workaround is to reopen the scanner after each scan. But loading the VRS Profile took around 5-10 seconds, so, after each Klick on Scan, i have to wait. Im also not able to debug this method to see whats happening here (Sure, its yours )
Do you have a hint how i can prevent the method TwainAcuireToGdPictureImage closing an active VRS session (what exactly happens to the TwainStream ?)
My Setup: GdPicture v 11.2
.NET c# Environment
Windows x64
Twain 2.2
Kofax VRS 4.5.2
Scanner: Fujitsu fi 6670a with an AIPE-Card
Kind regards
Matthias R.
im facing an performance issue right now.
At startup, I am initializing my Scanner, in this case a Fujitsu fi 6670a with an AIPE-Card. On scanner.Open(), a VRS ( Kofax Virtual Rescan) Profile is loaded in the Taskbar which preprocess the Twainstream. Everything is fine till this point of time.
Now I scan a document and everything is working. The function TwainAcquireToGdPictureImage(mHandle) return a valid id and the process is working well. Except, the method is closing my VRS Profile in the taskbar.
At the moment, the workaround is to reopen the scanner after each scan. But loading the VRS Profile took around 5-10 seconds, so, after each Klick on Scan, i have to wait. Im also not able to debug this method to see whats happening here (Sure, its yours )
Do you have a hint how i can prevent the method TwainAcuireToGdPictureImage closing an active VRS session (what exactly happens to the TwainStream ?)
My Setup: GdPicture v 11.2
.NET c# Environment
Windows x64
Twain 2.2
Kofax VRS 4.5.2
Scanner: Fujitsu fi 6670a with an AIPE-Card
Kind regards
Matthias R.
Re: TwainAcquireToGdPictureImage closes VRS
Hello Matthias,
Did you try to add a call to TwainSetAutoSourceClose(false) before starting the scanning process?
Here some info about the purpose of this method: https://www.gdpicture.com/guides/gdpicture/web ... Close.html
Cheers,
Loïc
Did you try to add a call to TwainSetAutoSourceClose(false) before starting the scanning process?
Here some info about the purpose of this method: https://www.gdpicture.com/guides/gdpicture/web ... Close.html
Cheers,
Loïc
Re: TwainAcquireToGdPictureImage closes VRS
Hi Loïc,
thanks ! That worked (Bit anoying, I should have knew that). Thanks so far !
thanks ! That worked (Bit anoying, I should have knew that). Thanks so far !
Re: TwainAcquireToGdPictureImage closes VRS
You are very welcome Matthias, thank you for the return!
Who is online
Users browsing this forum: No registered users and 1 guest