SHMUNMAP

Syntax | Arguments | Keywords | Examples | Version History | See Also

The SHMUNMAP procedure is used to remove a memory segment previously created by SHMMAP from the IDL session. In addition, it may remove the memory segment from the system. (Whether the memory segment is removed from the system depends on the type of segment, and on the arguments used with SHMMAP when the segment was initially attached.) If no variables from the current IDL session are accessing the segment (that is, if the IDL-maintained reference count is 0), the segment is removed immediately. If variables in the current IDL session are still referencing the segment, the segment is marked for removal when the last such variable drops its reference.

During this UnmapPending phase:

Syntax

SHMUNMAP, SegmentName

Arguments

SegmentName

A scalar string containing the IDL name for the shared memory segment, as assigned by SHMMAP.

Keywords

None.

Examples

To destroy a memory segment previously created by SHMMAP with the segment name myseg:

SHMUNMAP, 'myseg' 

Version History

5.6

Introduced

See Also

SHMDEBUG, SHMMAP, SHMVAR