TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Problem with TwainTransferMechanism.Memory and auto detectio

Forums › TWAIN Classic › Problem with TwainTransferMechanism.Memory and auto detectio

  • This topic has 8 replies, 3 voices, and was last updated 8 years ago by remy.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 6, 2013 at 2:31 pm #22830 Reply
    remy
    Participant
    • Topics - 3
    • Replies - 7
    • Total Posts - 10

    Hy,

    When I scan an A4 Page using TwainTransferMechanism.Memory, half of the result image is black. It looks like the page format is not detected whereas auto detection is activated.
    With TwainTransferMechanism.native or if I scan a page with settings A4 landscape and TwainTransferMechanism.Memory, I don’t have problem

    Thanks for your help

    March 7, 2013 at 5:37 am #25827 Reply
    Robby Jackson
    Participant
    • Topics - 0
    • Replies - 7
    • Total Posts - 7

    Hi Remy,

    Does your computer has sufficient memory to hold the scanned images? If this is not the case, it would be helpful to paste your source code here.

    With TwainTransferMechanism.native or if I scan a page with settings A4 landscape and TwainTransferMechanism.Memory, I don’t have problem

    When you try these two options, did you change the other properties, such as the resolution?

    In addition, did you have the same problem with Twack?

    March 7, 2013 at 8:46 am #25828 Reply
    remy
    Participant
    • Topics - 3
    • Replies - 7
    • Total Posts - 10

    Hi Robby,

    I don’t think that my computer memory is a problem, I have 4 Go.
    During my tests, I changed only page format (auto, A4landscape) and TwainTransferMechanism.Memory or TwainTransferMechanism.Native.
    With TwainTransferMechanism.Native, I am no problem.
    With TwainTransferMechanism.Memory, I am a problem only scan with auto detection.

    I used twack and I tried to change TwainTransferMechanism.Memory or TwainTransferMechanism.Native, and I have always half of the result image black.

    April 9, 2013 at 7:21 pm #25829 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    This sounds like a possible driver bug…

    What scanner are you using and (if you can find it) what version of the TWAIN driver?

    Have you tested with any other scanner, particularly another brand or vendor?

    April 10, 2013 at 7:12 am #25830 Reply
    remy
    Participant
    • Topics - 3
    • Replies - 7
    • Total Posts - 10

    Hi spike,

    I use a Canon DR6030C and the version of the driver TWAIN driver is 1.0.11 and version of firmware is 4.16.
    I think that I have the last version.
    I try only on the Canon scanners.

    April 10, 2013 at 4:45 pm #25831 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hmmm. Canon TWAIN drivers are, in general, very good. But I have seen some funny differences between Native transfer mode and Memory transfer mode, when the driver is doing some kind of smart processing.

    Could you explain more what you mean by “auto detection”? What is that exactly?
    Which half of the image is black?
    is it *exactly* half?
    Is it *exactly* black? (for example, you examine the pixel values and they are 0’s)
    The other half looks exactly right?
    Any chance you could attach an example to your reply, as a TIFF file?

    Just to mention some things related to Robby’s question: it does not matter (for this) how much memory you have installed in the computer, because Windows uses virtual memory. Each 32-bit program is given 4GB of virtual memory to run in. Normally Windows takes up 2GB, leaving 2GB for your program and its data. If you scan an A4 page in color at 3000 DPI, the incoming image would require 2,610,260,100 bytes and your program will not be able to allocate that. This will happen on a machine with 2GB of RAM or a machine with 16GB of RAM, because the issue is related to the 32-bit virtual address space.

    April 11, 2013 at 7:54 am #25832 Reply
    remy
    Participant
    • Topics - 3
    • Replies - 7
    • Total Posts - 10

    The mode detect auto is a format of scan like A4 landscape or A4 portrait.
    I’m sure that the half page is black (#000000) and the other half is very good.
    I attached my page for that you see.

    April 11, 2013 at 2:53 pm #25833 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi Remy – thanks for the TIFF files, now I understand. It would have been clearer if you had said that you are feeding A4 paper (I guess in landscape?) and the scanner is returning a 17″ x 12″ image with your paper on the right and black filled on the left.
    You are correct that it is ‘half black’ but that leaves out a lot of important information.

    This looks like a driver bug. I think your choices are (a) talk to Canon technical support or (b) work around the problem in your application.

    If you are feeding the paper in portrait, have you tried feeding on the other edge of the feeder, or feeding landscape?
    These are just work-around ideas. If you are feeding your paper landscape already, then this is definitely a driver bug.

    April 11, 2013 at 3:04 pm #25834 Reply
    remy
    Participant
    • Topics - 3
    • Replies - 7
    • Total Posts - 10

    Hi Spike,
    Yes, I works around the problem, I select transfert native for “detect auto” and transfert memory for “A4,A3,A5”.
    Thanks for your help.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Problem with TwainTransferMechanism.Memory and auto detectio
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.