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

Cancel button NOT responding while Scanning is in Progress

Forums › TWAIN Classic › Cancel button NOT responding while Scanning is in Progress

  • This topic has 0 replies, 1 voice, and was last updated 2 years ago by Kishore.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • March 17, 2019 at 10:03 pm #50867 Reply
    Kishore
    • Topics - 101
    • Replies - 195
    • Total Posts - 296

    Hello,

    I am working on an experimental TWAIN App for Windows platform.

    For the most part things are working good for me, except that I cannot cancel scan while the scan is in Progress.

    As per TWAIN standard, I think I am doing my best with Windows Message looping and passing Windows Msg to TWAIN with DG_CONTROL/DAT_EVENT/MSG_PROCESSEVENT from Event queue. But despite that I think I have missed some parts (I’m not sure where things went wrong). I’m facing this problem that when the scan is in progress, I cannot interact with the “scan progress” dialog box, which also means cannot “cancel the scan”.

    While debugging my application, I’m seeing that after I make DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET call to DSM_Entry, the DSM_Entry function is not returning until the scan is complete. And basically this is causing the problem. This DSM_Entry is getting called inside the UI Messaging loop, responsible for getting all the Users actions on App Window. Now, if message DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET is making DSM_Entry blocked, then how I’m I supposed to get user actions? Who is supposed to listen to UI action while scan is in progress. As per specification, we are supposed to use single thread to make it work, which also further confuses me.

    Can someone help me understand where am I going wrong?

  • Author
    Posts
Viewing 1 post (of 1 total)
Reply To: Cancel button NOT responding while Scanning is in Progress
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

  • 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
  • Changing TWAIN driver defaults
  • 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.