This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, March 19, 2006 9:25:31 PM(UTC)
Groups: Registered
Posts: 4
Hi there
I am having trouble with high memory usage. I typically scan 30 - 50 pages at a
time and my memory usage becomes extremely high. I tried using the
RasterMemoryFlags.Disk but this did not make a difference and I am not sure how
I must do it. Is there a example on Disk memory that I can look at?
Thank you
Update: I am using v14.5 of
the lead tools and programming in VB.Net
#2
Posted
:
Tuesday, March 21, 2006 2:57:00 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
The easiest solution to your problem is probably changing the behavior
so that you save every scanned page to disk instead of holding them all
in memory during scanning.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Tuesday, March 21, 2006 9:31:54 PM(UTC)
Groups: Registered
Posts: 4
The big
thing is just that before I save the pages I need to show the pages to the user
that will manipulate the pages. Then I will save then to the doc base.
#4
Posted
:
Friday, March 24, 2006 12:28:24 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you store all of these scans in memory, you will eventually run out of memory. Images are kept uncompressed in memory so their size is even bigger (width x height x bits per pixel / 8). The bets thing to do would be to save the images to disk and then load them back up once scanning is complete. You can then load them one at a time, allow the user to change them, then store them in the database.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.