Skip to content

[Doc] Fix C++ thread spinning snippet: AddSessionConfigEntry to AddConfigEntry#263

Open
yeelam-gordon wants to merge 1 commit into
MicrosoftDocs:docsfrom
yeelam-gordon:fix/61791706-cpp-wrong-method-name
Open

[Doc] Fix C++ thread spinning snippet: AddSessionConfigEntry to AddConfigEntry#263
yeelam-gordon wants to merge 1 commit into
MicrosoftDocs:docsfrom
yeelam-gordon:fix/61791706-cpp-wrong-method-name

Conversation

@yeelam-gordon
Copy link
Copy Markdown

@yeelam-gordon yeelam-gordon commented Apr 14, 2026

Problem

The C++ thread-spinning code snippet calls AddSessionConfigEntry() which doesn't exist in the ONNX Runtime C++ API. The correct method is AddConfigEntry().

Fix

Changed AddSessionConfigEntry(...) to AddConfigEntry(...) in 2 places.

Files changed

  • docs/new-windows-ml/run-onnx-models.md — C++ tab

The ORT C++ wrapper uses AddConfigEntry, not AddSessionConfigEntry.
Fixes ADO #61791706

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant