3.2. tsContextDestroy

Syntax

Pascal

procedure tsContextDestroy(ContextID: tsContextID);

C/C++

void tsContextDestroy(tsContextID ContextID);

Description

This function frees an context and all it's containing objects.

Params

ContextID

The ID of the context that will be freed.

Error Codes

TS_NOT_INITIALIZED

You can't free an context if the library wasn't initialized. See also tsInit.

TS_INVALID_OPERATION

You can't free an context they is bound to an different thread.

TS_INVALID_VALUE

If you pass an ID of context that dosn't exists.

TS_ERROR

During the freeing of the context an error occours that hasn't an specific error code.