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

App is terminated on DS open [WIN32]

Forums › TWAIN Classic › App is terminated on DS open [WIN32]

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 11 months ago by Billie.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 3, 2010 at 6:32 pm #22572 Reply
    Billie
    Participant
    • Topics - 2
    • Replies - 5
    • Total Posts - 7

    Hy all!

    My App is written in Java and C. It works fine on the TWAIN sample sources but now I have to use the DS from a specific Vendor.

    When I start my app within Visual Studio or from Command line everything works fine.

    When I start my app within Eclipse IDE, the App terminates on OPENDS command without any error, message, dump – just stops.

    TWAINDSM Log:


    [190638310 dsm.cpp 398 183 00000F10] TWAIN Working Group

    [190638310 dsm.cpp 399 183 00000F10] TWAIN 32 Source Manager (Image Acquisition Interface)

    [190638310 dsm.cpp 400 183 00000F10] version: 2, 1, 1, 0

    [190638310 dsm.cpp 2239 183 00000F10] DG_CONTROL/DAT_PARENT/MSG_OPENDSM

    [190638310 apps.cpp 351 183 00000F10] Application: "Allgemeines Rechenzentrum GmbH"

    [190638310 apps.cpp 352 183 00000F10] "SBP"

    [190638310 apps.cpp 353 183 00000F10] "SBProxy" version: 2.0

    [190638310 apps.cpp 354 183 00000F10] TWAIN 2.1

    [190638310 apps.cpp 1375 127 00000F10] Could not find DS_Entry function in DS: C:WINDOWStwain_32wiatwain.ds

    [190638310 apps.cpp 645 127 00000F10] Condition Code: DS or DSM reported error, application shouldn't

    [190638310 apps.cpp 1388 127 00000F10] Loaded library: C:WINDOWStwain_32SampleTWSRC_32.ds

    [190638310 apps.cpp 1388 0 00000F10] Loaded library: C:WINDOWStwain_32sample2TWAINDS_Sample32.ds

    [190638388 apps.cpp 1388 1170 00000F10] Loaded library: C:WINDOWStwain_32USB2800emTwain.ds

    [190638388 dsm.cpp 2274 18 00000F10] TWRC_SUCCESS


    [190638388 dsm.cpp 2239 0 00000F10] DG_CONTROL/DAT_ENTRYPOINT/MSG_GET

    [190638388 dsm.cpp 2274 0 00000F10] TWRC_SUCCESS


    [190638388 dsm.cpp 2239 0 00000F10] DG_CONTROL/DAT_IDENTITY/MSG_USERSELECT

    [190639982 dsm.cpp 2274 0 00000F10] TWRC_SUCCESS


    [190639982 dsm.cpp 2239 0 00000F10] DG_CONTROL/DAT_IDENTITY/MSG_OPENDS

    [190639982 apps.cpp 1320 0 00000F10] Datasource: "USB 2800"

    [190639982 apps.cpp 1321 0 00000F10] "Digital Camera"

    [190639982 apps.cpp 1322 0 00000F10] "MAKU USB Camera 1" version: 1.603

    [190639982 apps.cpp 1323 0 00000F10] TWAIN 1.6

    [190640013 apps.cpp 1388 1170 00000F10] Loaded library: C:WINDOWStwain_32USB2800emTwain.ds

    The sample sources work also when I start within Eclipse.

    So is it possible that the DSM causes the problem or does my App or the DS something wrong?

    Best regards,
    Billie

    February 3, 2010 at 9:21 pm #25137 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    The fact it is failing inside loadlibrary it sounds like it is a problem of the DS.
    Have you tried the sample applications? Or other TWAIN applications?
    Are you providing a hWnd for your application when you do a OpenDSM? Even if you are a command line application you need to provide HWND.

    Jim Watters

    February 4, 2010 at 8:40 am #25138 Reply
    Billie
    Participant
    • Topics - 2
    • Replies - 5
    • Total Posts - 7

    Hello Jim!

    I do just like the TWAIN FreeImage Sample (TwainAppCMD). So on OpenDSM i provide a NULL-Pointer and on EnableDS i provide the DesktopWindow reference.

    This works fine for both Sample Sources (FreeImage and the old one). But I also tried with a new window – the same matter, Sample Sources work, the other not.

    I tried with the Sample App (GUI and CMD-Line), the Source works – so does my App when I don’t start it within Eclipse IDE.

    One More: The “Loaded library:” debug string is printed after the DS library is loaded, so maybe the DS_Entry call fails?

    February 4, 2010 at 9:53 pm #25139 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    It could be a problem related to working folder and what DLLs are in your path.
    Use Depends on the .ds file to check if anything is missing.
    http://dependencywalker.com/

    Jim Watters

    February 5, 2010 at 11:37 am #25140 Reply
    Billie
    Participant
    • Topics - 2
    • Replies - 5
    • Total Posts - 7

    Hy Jim!

    Just the “DWMAPI.DLL”.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: App is terminated on DS open [WIN32]
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.