| Previous | Next |
| DXGI_ERROR_ACCESS_DENIED | DXGI_ERROR_SDK_COMPONENT_MISSING |
DXGI_ERROR_NAME_ALREADY_EXISTS
DXGI_ERROR_NAME_ALREADY_EXISTS means that a shared-resource name supplied to IDXGIResource1::CreateSharedHandle is already associated with another resource. It is a naming collision in the application or cooperating processes, not an indication that the graphics adapter is unavailable.
How to prevent collisions
- Use a unique naming scheme whose scope and lifetime are documented for every producer and consumer.
- Include a process, session, or generation component when independently running instances must not share the same name.
- Use an unnamed handle when cross-process discovery by name is not actually required.
Do not overwrite by assumption
A name can identify a resource owned by another live component. Decide whether the existing resource should be opened through an agreed protocol or whether the new resource must use a different name; do not assume it is safe to replace the current owner.
Microsoft: IDXGIResource1::CreateSharedHandle · Microsoft: DXGI error codes
Looking for a different code? Search another status or error code.