Ccmdtarget() assertion and relaise failure
-
in my applications 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) -
in my applications 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)Alternatively you could use WIA ([Windows Image Acquisition (WIA) - Win32 apps | Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/wia/-wia-startpage))