Home › Forums › TWAIN Classic › ICAP_XRESOLUTION and ICAP_YRESOLUTION and memory problem
- This topic has 14 replies, 2 voices, and was last updated 14 years, 9 months ago by sdavi.
- AuthorPosts
Hi all twain experts,
i’m encountering with a problem related to ICAP_XRESOLUTION (and Y)
and memory allocation.
If i inquiry about possible list of values of ICAP_XRESOLUTION, via MSG_GET, i receive follow values:
100.000,150.000,200.000,300.000,400.000,600.000,1200.000,2400.000,4800.000,9600.000,19200.000I verify this values both with my application and TWAIN_32 Twhacker confirm me that it is correct.
But if i open the tool of my Brother, it enable me to choice a resolution of 1200 dpi as a max value.
In fact if i open my app and set to 19200 as resolution (x and y) i get an error message related to insufficient memory.
Same behavior with TWAIN_32 Twhacker.
How is possible that a scanner support a resolution and there is not enough memory in my pc? i have
a 4gb ram computer home.Any ideas?
like you I like the SupportedCaps capability and enjoy using Get to determine what the appropriate values are, seems kinda natural to use the capabilities as they are documented and as they are used in sample code.
that said, if you see different values returned from a driver than are displayed on the driver’s Ui there is a good chance you are either doing something wrong, have a close to worthless driver on your hands or both.
what are you using for units and how is the tranfer set? try switching to file mode for the transfer to check the memory issue. if you have not taken a look at Dosadi’s twirl & twister utilities with that datasource.
.
Hi Gabe
Units are sets to the TWUN_INCHES value;
What i said is that i got values that display the ui driver of my scanner,
plus some other value (only higher values).
So i perform an aexperiment.
Via my application i set resolution (x and y) to 1200 dpi and this produce
an image (i wrote a simple class DBI.cpp that get DBI handle returned from the scanner and save into the filesystem) about to 300 MB.
So i think that if the ui driver dont display me higher values, is possible that it inquiry my ram and verify if i can set higher dpi, so it hide me higher values.
That other values, not only i get with my app, but with twhacker too, so i’m sure that i’m correct when i inquiry my scanner for that capability.
Do u think?I think you have a device where the Ui and Api don’t match. In those cases I usually trust the Ui over the values reported to the api as it has seemed in the past that when in doubt trust the Ui over the Api. I also don’t think the device’s driver is doing any check on your available memory and hiding values, I’d bet that the Ui was tested better than their api and they ‘forgot’ to remove the higher values.
Are you following the capability guide for capability ordering when you set the caps?.
I’ve checked just now that document.
I’d read that ICAP_XRESOLUTION (and Y) are dependent from ICAP_BITDEPTH (and when i set ICAP_XRESOLUTION and Y my ICAP_BITDEPTH was 24), wich depends on ICAP_PIXELTYPE (and for my scanner was set to TWPT_RGB), but i send a MSG_SET only for ICAP_XRESOLUTION and ICAP_YRESOLUTION.Best regards
yup, thats pretty much all of it – if you’re already checking the units, bitdepth and pixeltype then you’re doing as much right as you can. you may benifit from testing development on a more stable driver – I use the Kodak i30 in simulation mode and highly recommend it
.
Kodak i30? what is? and what is simulation mode? it sounds like interesting…
Where can i download it??Kodak made a scanner, the i30 (well, they made a lot of scanners but I like the i30). At that time the drivers that Kodak used for their i-series contained an additional mode, simulation mode. If you search Google you can find the driver – typically with the words ‘Scanner Validation Tool’ in the name. Then if you search this forum for the word ‘simulation’ you should find a thread where I tell you how to enable it, if you can’t find either then post back and I’ll go get links again.
.
here is the link for setting up simulation mode:
http://www.twainforum.org/viewtopic.php?t=1822&highlight=simulationand here is the driver:
http://graphics.kodak.com/docimaging/US/en/Products/Document_Scanners/Desktop/i30_Scanner/Support/Drivers_And_Downloads/i30_and_i40_Scanner_Driver/index.htmTank you very much Gabe. Now i will study it.
Best regardsgabe, i installed it, but under %windir%twain_32kodak there is nothing.
The kodak folder exists but it does not contain nothing….have you rebooted once after the install? I seem to remember that some files were missing until reboot
.
Ok, i will just now.
Hi gabe, i rebooted, but the folder C:WINDOWStwain_32kodakkds_i30_i40 is empty.
No .ds file found nor another.
What can i do?Yeah, i’m now in simulation mode.
I was to read exact instructions.
Tank you Gabe
Best regards- AuthorPosts