Home › Forums › TWAIN Classic › App is terminated on DS open [WIN32]
- This topic has 4 replies, 2 voices, and was last updated 14 years, 2 months ago by Billie.
- AuthorPosts
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,
BillieThe 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
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?
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
Hy Jim!
Just the “DWMAPI.DLL”.
- AuthorPosts