Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: TWAIN Scanning - Acquire Problem ?
Started by rulingking at 04-30-2008 4:56. Topic has 7 replies.

Print Search « Previous Thread Next Thread »
  04-30-2008, 4:56
rulingking is not online. Last active: 8/12/2008 5:08:03 PM rulingking

Not Ranked
Joined on 12-17-2006
Posts 6
TWAIN Scanning - Acquire Problem ?
Reply Quote

Hi all,

I am facing a problem with TWAIN Scanning,

I am using Leadtools 14 with VB6 for my application :

I am acquiring an Image to Memory Mode, and using L_LTWAIN_BUFFER_MODE to Acquire method as :

 intRet = ImgTwain.Acquire(L_LTWAIN_BUFFER_MODE)

The problem is with RasterTwains Acquire method that while calling the Acquire method the Image get scanned and immediately an error occured saying  -

"Synchronous call of ReadImageData failed due to exception. Attempted to read/write protected memory. This is often an indication that the memory is corrupt."

Can someone tell me what is going wrong as the acquisition and transfer of image data done by the Acquire method ?

Or How I am able to conclude transfer of scanned image ?

Can I get any Memory Acquisition example ?


   Report 
  04-30-2008, 5:38
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,703
Re: TWAIN Scanning - Acquire Problem ?
Reply Quote
Hello,

I checked this issue on my side and didn't notice the problem.

What is the build number (version info) of the LEADTOOLS v14 DLLS (such as LTRTN14n.dll, LTRTW14N.DLL and ltkrn14n.dll) that you use?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  04-30-2008, 6:09
rulingking is not online. Last active: 8/12/2008 5:08:03 PM rulingking

Not Ranked
Joined on 12-17-2006
Posts 6
Re: TWAIN Scanning - Acquire Problem ?
Reply Quote

Hi Maen,

First of all thank you for the instant reply ,

The build nos for dlls are :

ltkrn14n.dll - 14.5.0.2

LTRTN14N.DLL - 14.5.0.2

LTRTW14N.DLL - 14.5.0.10

lttwn14n.dll - 14.5.0.10

 

If all things are correct by your terms then can you send me some example of acquiring and transferring image into memory mode.

I am not using TWAIN Sources UI, firstly I tried using L_LTWAIN_USE_THREAD_MODE with Acquire method but not get result. so now I switched my flag to L_LTWAIN_BUFFER_MODE.

One more thing to specify is after this error if I execute this Acquire method line again for one or two instances then the Image get transfered and the AcquirePageEvent gets executed.

This is cetainly a very mischievous behaviour and cant guess exactly what is happening,

Please guide me on this issue.

Thanks again.

 


   Report 
  04-30-2008, 6:24
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,703
Re: TWAIN Scanning - Acquire Problem ?
Reply Quote
Hello,

You are using a pretty old version of LEADTOOLS 14.5 DLLs.

To obtain the latest LEADTOOLS v14.5 patches, please send your LEADTOOLS v14.5 serial number to support@leadtools.com and ask for the latest patches and mention this forum post.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  05-03-2008, 8:57
rulingking is not online. Last active: 8/12/2008 5:08:03 PM rulingking

Not Ranked
Joined on 12-17-2006
Posts 6
Re: TWAIN Scanning - Acquire Problem ?

Attachment: TWAINSample.zip
Reply Quote

Hi there,

Now I have updated my dll files as follows

ltkrn14n.dll - 14.5.0.2

LTRTN14N.DLL - 14.5.0.57

LTRTW14N.DLL - Not In Use

lttwn14n.dll - Not In Use

Sample is attached herewith for your reference


   Report 
  05-04-2008, 5:10
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,703
Re: TWAIN Scanning - Acquire Problem ?
Reply Quote
I rechecked the same issue using your sample project and the problem is not active.

Please try the same issue using the latest LEADTOOLS v14.5 patches.

To obtain the latest LEADTOOLS v14.5 patches, please send your LEADTOOLS v14.5 serial number to support@leadtools.com and ask for the latest patches. Please don't forget to mention this forum post in your email to support.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  05-07-2008, 7:44
rulingking is not online. Last active: 8/12/2008 5:08:03 PM rulingking

Not Ranked
Joined on 12-17-2006
Posts 6
Re: TWAIN Scanning - Acquire Problem ?
Reply Quote

I am acquiring an image in buffered memory mode.

TWAIN Drivers developer advised me to increase buffer size before acquiring image.

How should I increase buffer size using LEAD Tools Twain Toolkit ?

Do you have any sample which demonstrates TWAIN image acquisition in Buffered Memory Mode ?


   Report 
  05-08-2008, 9:13
Walter is not online. Last active: 8/14/2008 10:30:23 AM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 64
Re: TWAIN Scanning - Acquire Problem ?
Reply Quote
In order to change the buffer size you must use the Fast Twain interface (Twain.TwainFastConfiguration.BufferSize). This property is utilized in our Fast Twain Demo. To see it, load up the demo and click on the Twain Menu. From there, click Fast Twain. Select Memory Mode and enable the custom buffer size.
Walter
Technical Support
LEADTOOLS
support@leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » Re: TWAIN Scanning - Acquire Problem ?

Powered by Community Server, by Telligent Systems