Skip to content

[Bug]: graphics_capture example panics with HRESULT 0x800401FD (Object is not connected to server)Β #187

@Atliac

Description

@Atliac

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" }))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions