Information for 16-bit Applications

Top 

For the DTWAIN DLL 16-bit version, it is highly recommended that you choose the Large memory model for your application.  DTWAIN has not been tested with a Medium memory model application.  We believe that DTWAIN will work with a Medium memory model application, but as stated, this has not been tested.

 

Another important topic when developing a 16-bit DTWAIN application are the initial stack and heap sizes for the application.  It is important that you define your stack and heap sizes large enough within your application.  The usual way of doing this is to create a module definition file and specify the values within the definition file (usually these files have a .DEF extension).  If a module definition file is not used, there is a good chance that your application will act erratically, and may fail.

 

The minimum stack and heap size tested at DynaRithmic Software has been 10,000 bytes of heap space and 10,000 bytes of stack space. If no module definition file exists, many compilers default to the minimum size for stack and heap, which is not nearly enough.  The 16-bit examples contain sample DEF files.