1. Our application use TWAIN2 (TWAINDSM.dll) to scan, after scanning and general image files, close our application, our application crash. message is TWAINDSM.dll_Unloaded
2. The issue only occured in Windows 7 32 bit, not occured under 64 bit.
3. The issue only occured with Canon EL-DR125C, if I used other scanner, has not the issue.
4. If TWAIN_32.dll is used, there is not problem.
Can you help to teach me the issue key point? or we can ask driver team to check which point.
It might be caused by DEP. You can re-build your app to be NOT DEP compatible and try again.
Right-click Project in Solution Explorer, click Properties->Configuration Properties->Linker->Advanced->Data Execution Prevention (DEP) and set it to No.