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:
| Note |
SHMUNMAP, SegmentName
A scalar string containing the IDL name for the shared memory segment, as assigned by SHMMAP.
None.
To destroy a memory segment previously created by SHMMAP with the segment name myseg:
SHMUNMAP, 'myseg'
Introduced: 5.6