DTwainInterface::~DTwainInterface

Top  Previous  Next

Syntax

DTwainInterface::~DTwainInterface( );

 

Comments

The destructor of DTwainInterface is responsible for decreasing the internal DTwainInterface reference count by 1.  If the reference count reaches 0, DTWAIN automatically shuts down the interface between the application and DTWAIN and shuts down TWAIN.  To reestablish the interface, another DTwainInterface object must be created.   The constructor to DTwainInterface increments the internal reference count by 1.

 

An explicit call to DTwainInterface::SysDestroy can also be called to shut DTWAIN and TWAIN down, regardless of the reference count.

 

Note that if you are using the DYNDTWAIN classes, and the reference count is 0, FreeLibrary( ) is called to unload the DTWAIN DLL.