Twain Initialize Error

Document Imaging SDK,
Image SDK,
Annotation SDK,
Cover Page Generator

Moderator: Technical Support Team

Post Reply
Posts: 2
Joined: Sun Jan 13, 2013 3:21 pm

Twain Initialize Error

Post by ajayr » Tue Jan 15, 2013 5:17 pm


I need to use the TwainOcx control to scan from the client machine over the web. I have followed the example provided in the code samples and it is working fine. But however if the web page is refreshed I am getting the following error
" 16 TW_HWND_ERROR Error createing window for getting event from data source."
Looks like if the Init_Scan is called again it is causing this error. can you pelase suggest me a way to resolve this issue as we cannot have any control to prevent the client from refreshing the web page.
All your help documents are good for doing the happy path but there is little documentation on how to resolve the errors if we get any.


Post Reply