Skip to content

Commit 10707ed

Browse files
committed
Update relog.md
Adding COM dependency explanation for relog function
1 parent 6bde3d2 commit 10707ed

File tree

1 file changed

+2
-0
lines changed
  • docs/build-insights/reference/sdk/functions

1 file changed

+2
-0
lines changed

docs/build-insights/reference/sdk/functions/relog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ The input trace is passed through the analyzer group *numberOfAnalysisPasses* ti
7777
7878
The relogging of system events like CPU samples from within a relogger class isn't supported. Use the *systemEventsRetentionFlags* parameter to decide which system events to keep in the output trace.
7979
80+
The `relog` function depends on the COM API, so it is necessary for the user to call the [`CoInitialize`](https://learn.microsoft.com/en-us/windows/win32/api/objbase/nf-objbase-coinitialize) first and then [`CoUninitialize`](https://learn.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-couninitialize) once `relog` has finished. If you call `relog` without calling `CoInitialize` first then you will get error code 9 (RESULT_CODE_FAILURE_START_RELOGGER).
81+
8082
::: moniker-end

0 commit comments

Comments
 (0)