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

SelectSource / ShowUserInterface not opening

Forums › TWAIN Classic › SelectSource / ShowUserInterface not opening

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 1 month ago by spike.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 5, 2012 at 4:50 pm #22802 Reply
    amemmes
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    When I debugging this code it works fine and opens the select source dialog box and the user interface for the scanner but when I run the application as a service these items do not open. I have tried running the service as local system account with allow interact with desktop and also as a user with admin privleges and it still stalls when it hits these lines of code. Any suggestions/thoughts?
    Here is a simplified version of what I am trying to do. If I remove the selectSource and set showuserinterface to false it will scan the document and if I leave those things in the log will only show “1” showing it stalling when it hits the selectsource line.
    log.Trace(“1”);
    twainDevice.SelectSource();
    log.Trace(“2”);
    twainDevice.ShowUserInterface = true;
    log.Trace(“3”);
    twainDevice.StartSession();

    December 18, 2012 at 9:25 pm #25751 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Normally a service under Windows does not have Window and GDI services, which are relied on (heavily) by TWAIN and by TWAIN drivers. Some possible workarounds:

    http://stackoverflow.com/questions/267838/how-can-a-windows-service-execute-a-gui-application

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: SelectSource / ShowUserInterface not opening
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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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.