Home › Forums › TWAIN Classic › [Urgent] Critical issue with TWAIN DSM 2.0 and Windows Vista
- This topic has 23 replies, 3 voices, and was last updated 14 years, 2 months ago by jimwatters.
- AuthorPosts
PS: A hint:
the crash occurs in the overloaded LoadDS method just after this call:
TW_INT16 result = m_ptwndsmappsimpl->LoadDS(_pAppId,
m_ptwndsmappsimpl->pod.m_AppInfo[_pAppId->Id].pDSList->DSInfo[_DsId].szPath,
_DsId,
true);Loïc
========================
GdPicture Imaging SDK
Imaging Toolkits for developers .NET & ActiveX
http://www.gdpicture.com
Image Processing, TWAIN scanning, OCR, PDF/AWith your help the problem was found and fixed.
A new version of the DSM is available for Windows.
https://sourceforge.net/project/platformdownload.php?group_id=180588Regards,
Jim Watters**************************************************
JFL Peripheral Solutions Inc.
http://www.jflinc.com/
Your Expert Source of Custom Software and Services
for TWAIN Applications, Data Sources,
Peripheral Drivers and Support Software.
**************************************************Thank you very much Jim, it was a critical issue for one of my customers.
I will make tests tomorrow (the file seems to be not yet available for download)
Kind regards,
Loïc
========================
GdPicture Imaging SDK
Imaging Toolkits for developers .NET & ActiveX
http://www.gdpicture.com
Image Processing, TWAIN scanning, OCR, PDF/AHi,
Just a quick feedback to say that all is working perfectly now.
I will make tests on Windows 7 now 😀 . (if I find a TWAIN driver which works on this OS).
Kind regards,
Loïc
========================
GdPicture Imaging SDK
Imaging Toolkits for developers .NET & ActiveX
http://www.gdpicture.com
Image Processing, TWAIN scanning, OCR, PDF/AHi Jim,
I’m the customer/user Loic was referring to in his earlier post. I’ve downloaded the latest TWAINDSM, 2.0.7.1, and am still having problems.
I’m running under Windows 7 64-bit using Visual Studio 2008.
I’ve tried pointing to both the 64-bit and 32-bit DSMs with no real success. For testing I’ve tried both my application and the sample MFC app that comes with the DSM.
The 64-bit DSM won’t load at all in either application. Dependency Walker states that IESHIMS.DLL module is missing.
The 32-bit DSM, located in SYSWOW64 per the readme, loads but hangs when trying to do a scan. The scan progress dialog comes up behind the main app window and nothing happens. If I enable the UI that comes up, but clicking scan from there results in the same hang issue.
If I revert my application to use TWAIN_32.dll directly scanning works as expected.
Tomorrow night I’m going to try some more tests using the older DSMs to see if there are any differences.
Any ideas on the 2.0.7.1 DSM and the issues I’m experiencing?
Thanks.
Daniel
Chocksett SoftwareThe ieshims.dll is not used by the DSM It shows up in the dependency walker because the shell uses that dll if it’s available, but it doesn’t fail if it’s not (it’s not a ‘hard’ requirement).
So your problems have nothing to do with IE8.
On a 64bit Windows system:
WindowssysWow64 contains the 32bit version
Windowssystem32 contains the 64bit versionWhen an Applications does a loadlibrary on TWAINDSM.dll, Windows will load it from the correct location, the location depends on the Application being 32bit or 64bit.
The only way to use 64bit scanner drivers, is to use a 64bit App that uses TWAINDSM. The only datasources reported by the 64bit DSM, are those located in Windowstwain_64
The log from the DSM might help determine why it hangs during scan. Create and set environment variable TWAINDSM_LOG to the path and name of log file. See earlier post on this thread for more details.
Regards,
Jim Watters**************************************************
JFL Peripheral Solutions Inc.
http://www.jflinc.com/
Your Expert Source of Custom Software and Services
for TWAIN Applications, Data Sources,
Peripheral Drivers and Support Software.
**************************************************Thanks for the response Jim.
Soon after I posted I found some google results that mentioned the same thing about IEShims.dll.
I have the TWAINDSM dlls in the right locations for the tests I am running. My code is successfully being built as x64 and x32.
If I attempt to run the x64 application it will start up, but I don’t have any 64-bit data sources so I can’t test what happens when I try and scan. Do you know of any scanners that have 64-bit twain DSes?
When I run my x32 version of the app it still fails to scan. Even the sample from this site (twain.org) doesn’t run correctly. To clarify, neither works on Vista / Windows 7 64-bit OS.
If I run the sample on Windows XP SP-3 32-bit it scans successfully. I ran out of time last night before I could get my app over to the VM. I will try that tonight.
I have the logging working now (requires a reboot to get the environment variables to take) so I will be going through them to see what the differences are. Based on a quick browse of them last night it looks like the calls to Enable to DS are failing; no condition code or other info is available in the log, just TWRC_FAILURE.
I’ll post again when I have more details.
Thanks.
Daniel
The only 64bit TWAIN DS I am aware of currently is the sample DS on SourceForge. You can find the links at the top of http://twain.org/
On a Windows Vista64 machine I installed both the 32 and 64 versions of both the Sample application and sample ds. I also installed the older 32bit twain toolkit (twacker and ds). At this time the sample App and DS’s installers do not include the latest version of the TWAINDSM.
This machine does suffer from the DEP problem. If DEP was turned on everything failed. I updated to the latest TWAINDSM.dlls. Everything works even with DEP turned on.
I was able to scan successfully with all possible combinations of Apps to DSs.
It will require the log files to track down what is happening.
Jim Watters
Daniel,
Are you still having issues? Was it resolved? Anyone else having similar issues?
Jim Watters
- AuthorPosts