Site icon EfmSoft

What does HRESULT 0x80030021 (STG_E_LOCKVIOLATION) mean?

 
Previous Next
STG_E_SHAREVIOLATION STG_E_FILEALREADYEXISTS

STG_E_LOCKVIOLATION

How it differs from a sharing violation

STG_E_LOCKVIOLATION indicates a locking conflict during an operation that needs a region, stream, or storage state protected from concurrent changes. A sharing violation usually prevents an incompatible open; a lock violation can occur after objects are already open when another participant owns the needed lock. In document workflows this can involve a second writer, a preview/conversion service, or a stale process that did not release its storage object cleanly.

Compound files contain several internal structures that must remain consistent while data and allocation tables change. Applications should therefore treat concurrent writers as a deliberate coordination problem, not as two independent file updates that happen to use the same extension.

What to check

References


Looking for a different code? Search another status or error code.

Exit mobile version