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

C# and SEHException when reading capability, any idea

Forums › TWAIN Classic › C# and SEHException when reading capability, any idea

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by Denis.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 16, 2011 at 11:02 am #22654 Reply
    Denis
    Participant
    • Topics - 7
    • Replies - 9
    • Total Posts - 16

    hey,

    i am trying to query capabilities and get SEHException with one of my scanners (HP 4700). when I query this capability with Twacker it works fine. Does anybody have any idea what i can look? any general trace or something. it seems that i send everything right (at least on many different scanners it works fine too).

    i initialize TW_CAPABILITY following:

    [StructLayout(LayoutKind.Sequential, Pack = 2)]
    public class Tw_Capability
    {
    public ushort Capability;
    public ushort ContainerType;
    public IntPtr hContainer;
    ….
    }

    t.Capability= (ushort)cap;
    t.ContainerType= 0xffff;
    t.hContainer = IntPtr.Zero;

    i really lost what i can do to investigate the issue 🙁

    thank you!
    Denis

    January 17, 2011 at 12:12 pm #25373 Reply
    fct
    Participant
    • Topics - 0
    • Replies - 24
    • Total Posts - 24

    Try with the WIA Twain source for the scanner.

    If it works, you might be facing a problem with HP’s TWAIN drivers. I’ve hit that with another model of them, see this thread in their support forums:

    http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1295266215776+28353475&threadId=1269328

    January 18, 2011 at 6:15 am #25374 Reply
    Denis
    Participant
    • Topics - 7
    • Replies - 9
    • Total Posts - 16

    yes, with WIA it works fine. i barely can understand why it works with native code and does not with managed. also as i see in your thread the problem is 2-3 years old and i have new drivers. very strange…

    THANK YOU VERY MUCH for this point!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: C# and SEHException when reading capability, any idea
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

  • Sports betting Bonus Code
  • 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.