I tested this issue on a clean Windows 7 64-bit SP1 machine with the latest LEADTOOLS v14.5 DLLs and I was not able to see the problem. Please recheck the same issue on your side by using the following instructions:
- Open the "OpenSaveDemo" that ships with the SDK.
- Add a new menu (such as "Test" menu) and add the following code in the menu event handler:
+-------------+
//Add a reference to Leadtools.Twain
if(!Leadtools.Twain.TwainSession.IsAvailable(this))
{
if(MessageBox.Show("Twain not available, continue anyway?", "Test", MessageBoxButtons.YesNo) != DialogResult.Yes)
return;
}
Leadtools.Twain.TwainSession twainSessObj = new Leadtools.Twain.TwainSession();
twainSessObj.Startup(this, "LEADTOOLS", "LEADTOOLS for .NET", "14.0", "Caption");
twainSessObj.SelectSource();
twainSessObj.Shutdown();
+-------------+
- Build the project as Release.
- Copy all the files (with the project's Exe) from the Release folder to the deployment machine.
- Run the Exe.
- Select the Test menu.
- Notice that the problem doesn't appear.
If the problem persists on your side, please provide me with the following information:
1. What is the build number (file version info) of Leadtools.dll and Leadtools.Twain.dll files on your side? If the build number of Leadtools.dll is older than 14.5.0.82, to obtain the latest DLLs, send your serial number to
support@leadtools.com and mention this forum post in your email.
2. What is the Windows version that you use? And is it 32-bit or 64-bit?
Thanks,
Maen Badwan
LEADTOOLS Technical Support