in my application need some scanner support ,I thought it is a good idea to get into TWAIN and try it out.after that I had an exit error that is driving me nuts as an Debug Assertion Failed.... in cmdtarg.cpp line 40 CCmdTarget::~CCmdTarget because m_dwRef is greater than 1 (in this case it is 2)
CCmdTarget::~CCmdTarget() { if (m_xDispatch.m_vtbl != 0) ((COleDispatchImpl*)&m_xDispatch)->Disconnect(); ASSERT(m_dwRef <= 1); m_pModuleState = NULL; }
'ScannerApp.exe' (Win32): Unloaded 'C:\Windows\twain_32.dll' Debug Assertion Failed! Program: C:\Windows\SYSTEM32\mfc140d.dll File: d:\a01\_work\11\s\src\vctools\VC7Libs\Ship\ATLMFC\Src\MFC\cmdtarg.cpp Line: 40
ASSERT(m_dwRef <= 1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)