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

Reply To: [Urgent] Critical issue with TWAIN DSM 2.0 and Windows Vista

Forums › TWAIN Classic › [Urgent] Critical issue with TWAIN DSM 2.0 and Windows Vista › Reply To: [Urgent] Critical issue with TWAIN DSM 2.0 and Windows Vista

April 25, 2009 at 9:55 am #24873
lcarrere
Participant
  • Topics - 2
  • Replies - 15
  • Total Posts - 17

Hi Jim,

First, thank you for your assistance.

I’ve made what you suggested, however the generated log become empty each time I try to open a Data Source. If I just open your demo application which open the Data Source Manager, the created log reports some operations (but I don’t think this can help you).

I’ve made test on my development computer (Vista Premium 32bit) with difference configurations:

– With / without antivirus
– With / without UAC
– Always with TWAINDSM.DLL 2.0.5
– Always using Administrator account

All my tests fail using the TWAIN_App_mfc32.exe after trying to open a source.

See these 2 screen captures.

Step1:
I start the TWAIN_App_mfc32.exe application. The TWAIN DS are succefully listed. At this step, if I close the application a log are generated.

– The capture screen: http://www.gdpicture.com/twainorg/step1.png
– The content of the log:

[113006408 dsm.cpp   398   183 000015B8] TWAIN Working Group

[113006408 dsm.cpp 399 183 000015B8] TWAIN 32 Source Manager (Image Acquisition Interface)

[113006408 dsm.cpp 400 183 000015B8] version: 2.0

[113006408 dsm.cpp 2028 183 000015B8]

[113006408 dsm.cpp 2029 183 000015B8] DG_CONTROL/DAT_PARENT/MSG_OPENDSM

[113006408 apps.cpp 215 183 000015B8] Application: "App's Manufacturer"

[113006408 apps.cpp 216 183 000015B8] "App's Product Family"

[113006408 apps.cpp 217 183 000015B8] "Specific App Product Name" version: 1.0

[113006408 apps.cpp 218 183 000015B8] TWAIN 2.0

[113006409 apps.cpp 1200 127 000015B8] Could not find DS_Entry function in DS: C:Windowstwain_32wiatwain.ds

[113006409 apps.cpp 528 127 000015B8] Condition Code: DS or DSM reported error, application shouldn't

[113006410 apps.cpp 1213 0 000015B8] Loaded library: C:Windowstwain_32escndvperv200.ds

[113006413 apps.cpp 1213 0 000015B8] Loaded library: C:Windowstwain_32HP559TWHP559TW.DS

[113006417 apps.cpp 1213 0 000015B8] Loaded library: C:Windowstwain_32hpsj_0000hpsj_0000.ds

[113006420 apps.cpp 1213 0 000015B8] Loaded library: C:Windowstwain_32hpsj_0003hpsj_0003.ds

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_NULL/MSG_GET

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[113006421 dsm.cpp 596 18 000015B8] TWRC_ENDOFLIST

[113006421 dsm.cpp 2028 18 000015B8]

[113006421 dsm.cpp 2029 18 000015B8] DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT

[113006421 dsm.cpp 596 18 000015B8] TWRC_SUCCESS

[113006421 dsm.cpp 2028 0 000015B8]

[113006421 dsm.cpp 2029 0 000015B8] DG_CONTROL/DAT_PARENT/MSG_CLOSEDSM

[113006421 dsm.cpp 596 0 000015B8] TWRC_SUCCESS

Step2:

If I try to open a TWAIN DS (I’ve tested with all) the application simply crashes and the generated log is empty.

See the screenshot: http://www.gdpicture.com/twainorg/step2.png

I’ve made other tests:
– Using my own TWAIN dll based on the twain toolkit: fail when sending MSG_OPENDS If link to twaindsm.dll, success if I link the twain_32.dll.

– Using the twack_32 exe: fail when sending MSG_OPENDS If link to twaindsm.dll, success if I link the twain_32.dll.

One strange behaviour: If I call my own twain dll (based on TWAIN toolkit) from a vb.net / c# application, the crash occurs. If I call the dll from a vb6 application: no problem ! Maybe this detail can help…

I hope I was clear enough. If you need more details or deeper test I will be happy to assist.
I’ve past many hours on this issue and my conclusion is that there is a problem with the last DSM & Vista (but maybe I’am wrong ). 🙂

Kind regards,

Loïc Carrère

PS: Full success under Windows XP

========================
GdPicture Imaging SDK
Imaging Toolkits for developers .NET & ActiveX
http://www.gdpicture.com
Image Processing, TWAIN scanning, OCR, PDF/A

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