[GH-ISSUE #696] DirectX capture mode only works on primary display #2263

Closed
opened 2026-03-01 18:55:12 +03:00 by kerem · 0 comments
Owner

Originally created by @macklinb on GitHub (Jul 23, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/696

Originally assigned to: @NickeManarin on GitHub.

When I start a DX recording containing any part of my second monitor, the recording fails to start and I get the following exception:

Object reference not set to an instance of an object.
   at SharpDX.DXGI.OutputDuplication.TryAcquireNextFrame(Int32 timeoutInMilliseconds, OutputDuplicateFrameInformation& 
frameInfoRef, Resource& desktopResourceOut)
   at ScreenToGif.Util.Capture.DirectImageCapture.Capture(FrameInfo frame)

However if I move the recording window over so that it only captures my primary monitor, the recording works fine. If I make the second monitor my "main display" in the Windows Settings app, the behavior is reversed. This might be an issue with SharpDX and not ScreenToGif, not sure.

Fantastic tool by the way, I use it all the time 👍

Originally created by @macklinb on GitHub (Jul 23, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/696 Originally assigned to: @NickeManarin on GitHub. When I start a DX recording containing any part of my second monitor, the recording fails to start and I get the following exception: Object reference not set to an instance of an object. at SharpDX.DXGI.OutputDuplication.TryAcquireNextFrame(Int32 timeoutInMilliseconds, OutputDuplicateFrameInformation& frameInfoRef, Resource& desktopResourceOut) at ScreenToGif.Util.Capture.DirectImageCapture.Capture(FrameInfo frame) However if I move the recording window over so that it only captures my primary monitor, the recording works fine. If I make the second monitor my "main display" in the Windows Settings app, the behavior is reversed. This might be an issue with SharpDX and not ScreenToGif, not sure. Fantastic tool by the way, I use it all the time :thumbsup:
kerem 2026-03-01 18:55:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#2263
No description provided.