ReleaseLockString - Release a string locked to memory with the LockString functions

Top  Previous  Next

Syntax

 

ReleaseLockString( <nAddress> )

 

Parameters

 

<nAddress>

 

Address of allocated memory block that was returned by LockString or LockNullString.

 

Return value

 

NIL

 

Description

 

ReleaseLockString releases a memory block that was allocated by LockString or LockNullString.

 

Classification

 

Core

 

Category

 

Pointers and Memory

 

Quick Info

 

Library: cckptcor.lib / cckptcor.dll

 

See also

 

LockString, LockNullString, LockStringLenReadLockString, UnlockString

 

Example

 

 

#INCLUDE "CockpitCoreLibs.ch"

 

FUNCTION Main

 

LOCAL address

 

* Allocate memory and fill it with "Here"

address := LockString("Here")

 

* Read the string

? LockString( address )

 

* Release the allocated memory

ReleaseLockString( address )

 

RETURN NIL