Our company has just evaluated and licensed the GdPicture ActiveX control and related technologies. I am working on updating our product to use the GdPicture-based TWAIN interfaces in place of the previous 3rd party control (PajantImage). In doing this, I am getting some soft and hard errors.
I am working on an extended functionality Source Manager dialog and use the TwainGetSourceCount, TwainGetSourceName, TwainOpenSource, and TwainCloseSource methods to scan through all available sources, querying each one to determine what features it provides. I am encountering two issues with this.
After the first time I have opened, used the dialog, and closed it, subsequent instantiations have a TwainGetSourceCount of 0 (zero), preventing any listing of sources. The entire TWAIN interface appears to be relatively non-responsive, although the TwainGetState method returns the value of 3 (TWAIN_SM_OPEN) even though the Source Manager dialog was never opened.
On a related note, even just using the standard Source Manager (TwainSelectSource) to choose a source, then acquire and image (TwainAcquireToGdPictureImage) after which I close the image and source (CloseNativeImage and TwainCloseSource) leaves the TWAIN interface in the TWAIN_SM_OPEN state which it never returns from (even after an explicit TwainCloseSourceManager call), which prevents any further TWAIN interactions.
Worse, with the intial instantiation of the extended custom source manager dialog I am working on, as the loop opens and tests each source, I get hard crash errors the close my VB IDE when testing some methods on some sources. One example is the TwainGetAvailableXResolutions method when querying the Microsoft LifeCam source, though other sources can produce errors for simple boolean method tests (e.g. Logitech webcam that is intermittently accessed by webcam software - may be generating conflict?).
Any assistance on these issues and errors would be much appreciated.

