TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 1:27 pm




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Jun 01, 2011 9:46 pm 
Offline

Joined: Wed Jun 09, 2010 12:12 am
Posts: 15
Hi

I was scanning 300+ bitonal and gray images to the system using DWT Web plugin. Bitonal images are exported successfully, but not gray images. Each gray images is around 200KB, totally 60MB is the size for 300 images. I get following memory error when I export gray images to servlets. (
Quote:
Not enough memory to perform operation
)
My RAM is 2 Gig(not at even reached half of its commit charge when the error occurs). I talked to Tom(Live Chat) and he suggested to set TIFFCompressionType=0 , but even that did not help

Please see my code
DynamicWebTwain2 for bitonal images and it works, DynamicWebTwain3 is for gray and it dont
Code:
   frmScan.DynamicWebTwain2.TIFFCompressionType=0;
   frmScan.DynamicWebTwain3.TIFFCompressionType=0;
   frmScan.DynamicWebTwain4.TIFFCompressionType=0;
   var url ="eFpWorkplace/rescan;jsessionid="+sessId+"?typeid="+typeid+"&resourceid="+id+"&type=";

   frmScan.DynamicWebTwain3.HTTPUploadAllThroughPostAsMultiPageTIFF(host,url2,"imgeData2.tif");
      if (frmScan.DynamicWebTwain3.ErrorCode != 0) {      //Failed to upload image
            alert("Gray "+frmScan.DynamicWebTwain3.ErrorString);
         
            if (frmScan.DynamicWebTwain3.ErrorString == "HTTP process error")
               alert (frmScan.DynamicWebTwain3.HTTPPostResponseString);
      }
      

   frmScan.DynamicWebTwain2.HTTPUploadAllThroughPostAsMultiPageTIFF(host,url1,"imgeData1.tif");
   if (frmScan.DynamicWebTwain2.ErrorCode != 0) {      //Failed to upload image
            alert(frmScan.DynamicWebTwain2.ErrorString);
            succes=false;
            if (frmScan.DynamicWebTwain2.ErrorString == "HTTP process error")
               alert (frmScan.DynamicWebTwain2.HTTPPostResponseString);
   }



Please let me know if you have any solution

Thanks
Satheesh


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Thu Jun 02, 2011 9:43 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Satheesh,

Our team is looking into the issue. I will get back to you ASAP.

Regards,

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Mon Jun 06, 2011 12:10 am 
Offline

Joined: Wed Jun 09, 2010 12:12 am
Posts: 15
Hey Catherine,
Any update on this issue?

Thanks
Satheesh


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Mon Jun 06, 2011 11:19 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
To better pinpoint the cause of the problem, please let me know the following things:

1. Did you call frmScan.DynamicWebTwain3.HTTPUploadAllThroughPostAsMultiPageTIFF and frmScan.DynamicWebTwain2.HTTPUploadAllThroughPostAsMultiPageTIFF in the same function?

2. Did you try scanning and uploading fewer images in gray, such as 15 pages? And did you get the same problem?

3. Please try saving these 30 images locally by using the SaveAllAsMultiPageTIFF method to see if the problem persists.

4. Please try our online demo at the following link and tell me how it works.
http://www.dynamsoft.com/demo/DWT5/onli ... _scan.aspx

5. When you get the same error message, please check the memory usage of the process through task manager and let me know the result.

Also, it would be helpful if we can have an online meeting. If it is convenient for you, you can contact our support team via Live Help first:
http://www.dynamsoft.com/Support/livehelp.aspx

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Tue Jun 07, 2011 12:51 am 
Offline

Joined: Wed Jun 09, 2010 12:12 am
Posts: 15
Hi Catherine,

Please see the answers for your questions

Quote:
1. Did you call frmScan.DynamicWebTwain3.HTTPUploadAllThroughPostAsMultiPageTIFF and frmScan.DynamicWebTwain2.HTTPUploadAllThroughPostAsMultiPageTIFF in the same function?

Ans: Yes

Quote:
2. Did you try scanning and uploading fewer images in gray, such as 15 pages? And did you get the same problem?

Ans: We are able to scan more that (25+) and with out any issues

Quote:
3. Please try saving these 30 images locally by using the SaveAllAsMultiPageTIFF method to see if the problem persists.

Ans :I am able to scan 30 Images to local machine

Quote:
4. Please try our online demo at the following link and tell me how it works.
http://www.dynamsoft.com/demo/DWT5/onli ... _scan.aspx

Ans: We would actually need to upload to our system

Quote:
5. When you get the same error message, please check the memory usage of the process through task manager and let me know the result.

Ans:We have 2 Gig RAM, and commit charge is even less than 1 Gig when we had error

thanks
Satheesh


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Jun 08, 2011 12:59 am 
Offline

Joined: Wed Jun 09, 2010 12:12 am
Posts: 15
In the past, we were able to scan 25 pages successfully. I have tested 100 pages with the current version, and it was unable to upload the grey images. Unfortunately, it's an extremely time consuming process to scan batches repeatedly with more and more pages, so I can't give you the exact maximum number of pages it can import

It could be great if you can suggest a work around. This is critical issue on our client site, please give higher priority to this call
Satheesh


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Jun 08, 2011 2:14 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Satheesh,

If you can scan and upload 25 pages successfully, I believe the code is correct. The possible cause of the problem is that it hits the memory limit. As you know, Dynamic Web TWAIN is a 32-bit component. Thus, it has 2GB's limit.

To look into this issue more closely and also to speed up the process of solving the problem, shall we have an online meeting during 6:30 PM ~ 7:30 PM PST? If it is convenient for you, you can contact us via Live Help first:
http://www.dynamsoft.com/Support/livehelp.aspx

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Jun 08, 2011 7:46 am 
Offline

Joined: Wed Jun 08, 2011 1:03 am
Posts: 1
Hi, Catherine.

This is Gerard (Support Analyst for BancTec). The times you suggested for online meeting are not suitable for me in the UK as it would be at 1AM.
Can we work out a more suitable time for me in the UK, please.

Regards.

Gerard.


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Jun 08, 2011 12:47 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
gerardo_pw wrote:
This is Gerard (Support Analyst for BancTec). The times you suggested for online meeting are not suitable for me in the UK as it would be at 1AM.
Can we work out a more suitable time for me in the UK, please.

Sure. Please contact us at livehelp during 1:00 AM~ 3:00 AM PDT(Pacific Daylight Time) (that's 9:00 AM ~ 11:00 AM BST in UK) for an online meeting:
http://www.dynamsoft.com/support/livehelp.aspx

Regards,

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Mar 21, 2012 4:03 am 
Offline

Joined: Wed Mar 21, 2012 3:32 am
Posts: 1
Hi,

Pls let us know whether the given issue reported by Mr.Sateesh got resolved or not. If it got resolved, kindly let us know the root cause. Because we are also getting the same error when we are trying to scan 30+ color pages in a TIF format.

FYI - Error - "Not enough memory to perform operation."


Pls let us know how to resolve the given issue.

Thanks,
Uppili Srinivasan


Top
 Profile  
 
 Post subject: Re: 300 grayscale images gives Not enough memory to perform oper
PostPosted: Wed Mar 21, 2012 7:38 pm 
Offline
User avatar

Joined: Tue Nov 08, 2011 7:41 pm
Posts: 29
Location: Vancouver
Hi UppiliSrinivasan,

Yes, it is because you don't have enough memory to store the images.

You can check out this two articles:
http://kb.dynamsoft.com/questions/586/I ... b+TWAIN%3F
http://kb.dynamsoft.com/questions/643/H ... b+TWAIN%3F

_________________
Robby Jackson
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

It is currently Sun May 20, 2012 1:27 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog