DTL_INIT comments
Each task must initialize the RSLinx Classic data definition table via a call to DTL_INIT before calling any of the RSLinx Classic functions that define, undefine, or access data items. After successful initialization, subsequent attempts to call DTL_INIT by the same task will return DTL_E_NOREINIT. Applications must call DTL_UNINIT before exiting. Failure to do so may result in the RSLinx Classic executable believing the application is still running.
The DTL_INIT function performs the following tasks:
- Initializes internal data.
- Creates the data definition table by increasing the calling task's virtual address.
- Creates a background thread to handle all I/O completion (your application can receive callbacks at any time, not just during DTL_WAIT or blocking calls as in INTERCHANGE).
Provide Feedback