| Previous | Next |
| DATA_S_SAMEFORMATETC | CACHE_S_FORMATETC_NOTSUPPORTED |
VIEW_S_ALREADY_FROZEN
OLE view is already frozen
VIEW_S_ALREADY_FROZEN is HRESULT 262464 (0x00040140) from winerror.h. The documented description is “View is already frozen.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.
The requested view-freeze operation succeeded in the sense that the presentation was already frozen and no additional freeze transition was needed.
Where the result is encountered
- This result can appear in IViewObject::Freeze calls made by OLE containers; record the producing interface and method.
- This result can appear in document preview snapshots; record the producing interface and method.
- It can appear in embedding code that coordinates stable presentation data while saving or printing; record the producing interface and method.
Diagnostic sequence
- Capture the raw HRESULT
0x00040140immediately after the returning method and record whether the caller usedSUCCEEDED,FAILED, equality testing, or exception translation.
State to verify
The central question is whether the existing freeze token and aspect correspond to the presentation the caller intends to preserve.
Correct handling, retry, and recovery
Use the existing frozen state and maintain balanced freeze/unfreeze ownership. Do not create a second logical freeze record or lose the token needed to release the original freeze.
Evidence to preserve
- Preserve requested drawing aspect and lindex.
- Preserve freeze token returned earlier.
- Preserve view-change advisory activity.
- Preserve object running state.
- Preserve unfreeze calls and token ownership.
Difference from nearby HRESULT values
S_OK can indicate a newly established freeze; it specifically reports that the requested state already existed.
Developer and administrator guidance
When it crosses process, RPC, scripting, or managed-code boundaries, preserve the unsigned 32-bit value and symbolic name. A signed decimal rendering can obscure that the severity bit indicates success and can lead to incorrect exception or retry behavior.
Practical validation scenario
A container freezes a thumbnail before saving, then a second save path repeats the request. It prevents duplicate bookkeeping; the container later unfreezes exactly the token it owns.
References
Looking for a different code? Search another status or error code.
