# lock-frame command

The lock-frame command core locks a
frame into real memory. This prevents the frame from being flushed
to disk for any reason.

## Syntax

```
lock-frame {.}fid
```

## Description

The period optionally preceding
the FID indicates that the FID is being referenced by its hexadecimal
reference. Without the period, the reference is assumed to be decimal.

## Example(s)

```
lock-frame 1672
[450] frame locked at: 59e0 (hex)
```

## See also

- [abs.fid command](https://d3codex.com/tcl/abs-fid-command/)
- [unlock-frame command](https://d3codex.com/tcl/unlock-frame-command/)

---
Source: https://d3codex.com/tcl/lock-frame-command/ - part of the D3Codex reference.
