6.3. tsStringDispose

Syntax

Pascal

procedure tsStringDispose(pText: pWideChar);

C/C++

void tsStringDispose(const WideChar * pText);

Description

Frees an earlier allocated or converted string.

Parameters

pText

The string that will be freed.

Error Codes

TS_NOT_INITIALIZED

To delete some strings from the internal garbage collection the TextSuite library needs to be initialized. See also tsInit.

TS_INVALID_OPERATION

If an access violation occoured while freeing the string. This may be happen if you pass an allready freed or invalid string pointer to this function.

TS_INVALID_VALUE

If you pass nil / NULL to this function.

TS_ERROR

There was an unknown error. Please inform me in which case this happens.