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 DSMIdent displaying error and checking DEVICEONLINE

Forums › TWAIN Classic › Problem DSMIdent displaying error and checking DEVICEONLINE

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 7 months ago by gabe.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 9, 2011 at 10:45 pm #22710 Reply
    brcbuzz
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    Hi, Thanks for reading. VB.net on Windows 7 64 bit. Application is set as x86 using Twain_32.dll. Scanner is Canon DR-6010C.

    My problem… My form is being loaded as modal. When attempting to scan the form is calling a Twain function “DSMident” and if the power if off on the scanner then a message is being display from the scanner driver. Since my form is modal I cannot close the message and it gives the appearance the application is frozen. I tried implementing the twain capability of CAP_DEVICEONLINE and it always returns false.

    Dim capDeviceOnline As New TwCapability(TwCap.CAP_DEVICEONLINE)

    rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.[Get], capDeviceOnline)
    If rc <> TwRC.Success Then
    CloseSrc()
    Return False
    End If

    Does anyone know of any workarounds for this problem? I would greately appreciate any help.

    September 4, 2012 at 9:05 pm #25485 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    common problem. what to do with a messagebox from the driver… really kills the automation option for some solutions.
    you’re not going to find a function from twain, you need a box eater.

    in my apps i fire off another thread and compare the windows present on the system before 3 or 4 of the problematic triplets, the thread watches for ‘known dialogs’ and sends them the ‘known response’. when the triplet completes i tell the thread to stop watching until the next triplet that i’m careful with comes along. determining which dialog to watch for is a pain, so is being as certain as you can be that you’re sending those dialog the correct message – isn’t the kind of thing you want to screw up.

    it’s yucky.

    .

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problem DSMIdent displaying error and checking DEVICEONLINE
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.