Home › Forums › TWAIN Classic › TWAIN C# – Crashing when closing
- This topic has 0 replies, 1 voice, and was last updated 7 years, 6 months ago by Daniel Elm.
- AuthorPosts
I’m building a little tester using the C# Toolkit, and I’m running into some frustration with the sample code.
Using the twaincsscan.exe app, when I do a simple “Open, Scan, Close” routine with one of the models of scanners that I have, closing out of the application silently generates a pair of crashes that’s caught by the Windows Application log. (Below)
This is an Avision manufactured flatbed scanner driver, and I have no problem with it with our current client code (which uses the Atalasoft EZTwain toolkit). So the question is, is this a fault in the driver that the EZTwain toolkit already has a workaround for, or am I missing some standard cleanup/shutdown command that should tell the driver to shut down whatever other activity is going on?
Thanks in advance
— First error, on closing the application (or sometiems when I’m toying around with using the CloseDriver() method)
Faulting application name: twaincsscan.exe, version: 2.3.2.0, time stamp: 0x5622f667
Faulting module name: twdsm_n.dll_unloaded, version: 3.0.0.11, time stamp: 0x53d06fe2
Exception code: 0xc0000005
Fault offset: 0x0000fdd0
Faulting process id: 0x2eac
Faulting application start time: 0x01d2406416fac30e
Faulting application path: C:UsersdanielSourceWorkspacesScratchpadTWAIN CS 02.03.02.00×86 – Copytwaincsscan.exe
Faulting module path: twdsm_n.dll
Report Id: b3a5c83e-839e-4671-8117-10c028bbd701
Faulting package full name:
Faulting package-relative application ID:— Second error, immediately after the first
Faulting application name: twaincsscan.exe, version: 2.3.2.0, time stamp: 0x5622f667
Faulting module name: twdsm_n.dll_unloaded, version: 3.0.0.11, time stamp: 0x53d06fe2
Exception code: 0xc000041d
Fault offset: 0x0000fdd0
Faulting process id: 0x2eac
Faulting application start time: 0x01d2406416fac30e
Faulting application path: C:UsersdanielSourceWorkspacesScratchpadTWAIN CS 02.03.02.00×86 – Copytwaincsscan.exe
Faulting module path: twdsm_n.dll
Report Id: dfe1e9b6-e20a-4d41-91e8-02bac33ca3ac
Faulting package full name:
Faulting package-relative application ID:- AuthorPosts