August 6, 2009 at 8:31 am #22518
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:
I 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?August 6, 2009 at 3:45 pm #24975
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.
.August 7, 2009 at 4:34 pm #24976
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?August 10, 2009 at 6:03 am #24977
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?
.August 10, 2009 at 7:49 am #24978
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 regardsAugust 10, 2009 at 7:52 am #24979
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
.August 10, 2009 at 8:05 am #24980
Kodak i30? what is? and what is simulation mode? it sounds like interesting…
Where can i download it??August 10, 2009 at 8:18 am #24981
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.
.August 10, 2009 at 8:20 am #24982
here is the link for setting up simulation mode:
http://www.twainforum.org/viewtopic.php?t=1822&highlight=simulationAugust 10, 2009 at 8:43 am #24983
Tank you very much Gabe. Now i will study it.
Best regardsAugust 10, 2009 at 8:48 am #24984
gabe, i installed it, but under %windir%twain_32kodak there is nothing.
The kodak folder exists but it does not contain nothing….August 10, 2009 at 8:51 am #24985
have you rebooted once after the install? I seem to remember that some files were missing until reboot
.August 10, 2009 at 8:52 am #24986
Ok, i will just now.August 10, 2009 at 8:58 am #24987
Hi gabe, i rebooted, but the folder C:WINDOWStwain_32kodakkds_i30_i40 is empty.
No .ds file found nor another.
What can i do?August 10, 2009 at 12:34 pm #24988
Yeah, i’m now in simulation mode.
I was to read exact instructions.
Tank you Gabe
- This topic has 14 replies, 2 voices, and was last updated 11 years, 2 months ago by .
Viewing 15 posts - 1 through 15 (of 15 total)
Viewing 15 posts - 1 through 15 (of 15 total)