| Предыдущий | Следующий |
| ERROR_ILLEGAL_FLOAT_CONTEXT | ERROR_DOMAIN_CTRLR_CONFIG_ERROR |
ERROR_NO_EVENT_PAIR
Что означает ERROR_NO_EVENT_PAIR
ERROR_NO_EVENT_PAIR — операция синхронизации пары событий выполнена с объектом пары событий клиент-сервер для конкретного потока, однако с потоком не связана такая пара.
Что проверить
Зафиксируйте поток и вызов, на котором появился код, а также состояние потока до и после операции.
- Проверьте срок жизни контекста обратного вызова, порядок завершения потока и наличие ожидающих APC или уведомлений, если они участвуют в сценарии.
- При гонке или зависании снимите стеки участвующих потоков: обычный повтор часто только меняет расписание и скрывает причину.
Исходная формулировка
An event-pair operation was requested for a thread that has no associated event-pair object.
Treat this as a lifecycle defect rather than a transient scheduling condition. Establish the association before publishing the thread to workers, serialize teardown, and stop new work before removing the event pair. Prefer documented synchronization primitives for new code.
initialization did not create or associate the event pair
New applications should use documented events, semaphores, condition variables, I/O completion, or waitable objects. When maintaining legacy native code, make association explicit, balance every close, and prevent teardown until all users have left the synchronization domain.
Trace handle duplication, process exit, and teardown ordering to find the point where ownership was lost.
Технические ссылки
Нужно найти другой код? Найти другой код состояния или ошибки.