| Предыдущий | Следующий |
| ERROR_INVALID_MESSAGE | ERROR_INVALID_FLAGS |
ERROR_CAN_NOT_COMPLETE
Что означает ERROR_CAN_NOT_COMPLETE
ERROR_CAN_NOT_COMPLETE — не удалось завершить выполнение функции.
Что проверить
Зафиксируйте, какой вызов первым изменил состояние объекта и какой дескриптор используется после этого.
- Проверьте ветви отмены/завершения и не выполняется ли повторная операция над уже закрытым контекстом.
- Для новой попытки создайте новый контекст только после того, как исход предыдущей операции однозначно установлен.
Исходная формулировка
cannot complete this function.
The message is intentionally broad. It should not be presented as proof of corruption, access denial, or temporary unavailability without corroborating evidence.
Do not build a retry loop around this generic code without identifying the changing condition. Instrument the boundary immediately below the API that reports it, and preserve native status, provider error, or device sense information. Recovery depends on that missing context.
required cleanup, synchronization, or prerequisite work could not finish.
A focused test should reproduce the condition in which the operation is unsupported for the specific device, provider, or object type, assert this result, and confirm that the program releases resources associated with operations interrupted by teardown, state changes, or unavailable dependencies.
Технические ссылки
Нужно найти другой код? Найти другой код состояния или ошибки.
