Site icon EfmSoft

What does HRESULT 0x80030020 (STG_E_SHAREVIOLATION) mean?

 
Previous Next
STG_E_READFAULT STG_E_LOCKVIOLATION

STG_E_SHAREVIOLATION

Share conflict, not necessarily corruption

STG_E_SHAREVIOLATION means that the requested access is incompatible with an existing open of the same storage or file. It is often seen when a document is open in another application, a background previewer or indexer holds it, a server process is still processing it, or two components in the same process open it with incompatible sharing modes.

Structured Storage has stricter rules than many callers expect. Microsoft documents that compound-file streams opened through IStorage::OpenStream must use STGM_SHARE_EXCLUSIVE. That means a workaround based on opening multiple independent handles can make the conflict worse rather than better.

How to resolve the actual conflict

References


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

Exit mobile version