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

Exception in Init() C# code:

Forums › TWAIN Classic › Exception in Init() C# code:

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 1 month ago by Robby Jackson.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 4, 2013 at 5:31 am #22828 Reply
    apurv.purohit
    Participant
    • Topics - 3
    • Replies - 6
    • Total Posts - 9

    Sometimes I used to get “Exception in Init()” in my code….which results restart in application or restart of EPSON PLQ22 device….following is the exception:

    Exception in Init(): System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at SP_EPSON_PLQ22.Twain.DSMparent(TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, IntPtr& refptr)
    at SP_EPSON_PLQ22.Twain.Init(IntPtr hwndp)

    Once the exception has occurred, USB doesn’t releases the resources…and that might be the cause of restarting an application….

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

    Hi,

    Did you try to turn off the DEP (Data Execution Prevention)?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Exception in Init() C# code:
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.