3.1. tsContextCreate

Syntax

Pascal

procedure tsContextCreate(pContextID: ptsContextID);

C/C++

void tsContextCreate(tsContextID * pContextID);

Description

Creates an context and returns the ID of it. The actuall created contex will be bound to the current thread.

Params

pContextID

Pointer in which the ID of the created context will be returned.

Error Codes

TS_NOT_INITIALIZED

You cant create an context if the library wasn't initialized. See also tsInit.

TS_OUT_OF_MEMORY

During the creation of the context an out of memory occoured.

TS_INVALID_VALUE

If you pass nil / NULL for the pContextID pointer this error will happen.

TS_ERROR

There was an error but i don't have an reresenting error type. This could happen if you pass an invalid poiter to this function.