Initializing Transaction Handles
Go Up to Creating Transaction Handles
Before a transaction handle can be used to start a new transaction, it must be set to zero. The following code illustrates how two transaction handles are set to zero:
#include <ibase.h> . . . isc_tr_handle tr1; isc_tr_handle tr2; . . . /* Set transaction handles to zero before starting a transaction. */ tr1 = 0L; tr2 = 0L;
Once a transaction handle is initialized to zero, it can be used in a call to isc_start_transaction
() to establish a new transaction. If a nonzero transaction handle is passed to isc_start_transaction()
, the startup fails and an error code is returned.