Describe the bug 🐛
When running the provided graphics_capture example using v2.0.0-alpha.7 (main branch), the application panics with a Windows API error.
The error message is:
Screen capture failed: GraphicsCaptureApiError(WindowsError(Error { code: HRESULT(0x800401FD), message: "Object is not connected to server" }))
This occurs at line 122 in examples\graphics_capture.rs.
Expected behavior 📝
The example should initialize the Graphics Capture API, start a capture session, and run without crashing.
OS 🤖
- Version: [e.g. 10]
- Build[e.g. 22H2]
Additional context ➕
cargo run --example graphics_capture
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
Running `target\debug\examples\graphics_capture.exe`
thread 'main' (15604) panicked at examples\graphics_capture.rs:122:30:
Screen capture failed: GraphicsCaptureApiError(WindowsError(Error { code: HRESULT(0x800401FD), message: "Object is not connected to server" }))
Describe the bug 🐛
When running the provided
graphics_captureexample usingv2.0.0-alpha.7 (main branch), the application panics with a Windows API error.The error message is:
Screen capture failed: GraphicsCaptureApiError(WindowsError(Error { code: HRESULT(0x800401FD), message: "Object is not connected to server" }))This occurs at line 122 in
examples\graphics_capture.rs.Expected behavior 📝
The example should initialize the Graphics Capture API, start a capture session, and run without crashing.
OS 🤖
Additional context ➕