[GH-ISSUE #713] New recorder. Area / window selection. #582

Closed
opened 2026-02-26 09:31:58 +03:00 by kerem · 8 comments
Owner

Originally created by @wvxwxvw on GitHub (Sep 9, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/713

When trying to select an area, window or screen, the program crashes.

ScreenToGif 2.27 Portable, Windows 7

Originally created by @wvxwxvw on GitHub (Sep 9, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/713 When trying to select an area, window or screen, the program crashes. ScreenToGif 2.27 Portable, Windows 7
kerem 2026-02-26 09:31:58 +03:00
Author
Owner

@wvxwxvw commented on GitHub (Sep 9, 2020):

Works fine on previous versions. Now I checked it specially.

<!-- gh-comment-id:689511266 --> @wvxwxvw commented on GitHub (Sep 9, 2020): Works fine on previous versions. Now I checked it specially.
Author
Owner

@NickeManarin commented on GitHub (Sep 9, 2020):

I need to know the exception details. Does it display an error message or anything?

<!-- gh-comment-id:689546607 --> @NickeManarin commented on GitHub (Sep 9, 2020): I need to know the exception details. Does it display an error message or anything?
Author
Owner

@wvxwxvw commented on GitHub (Sep 9, 2020):

Sorry.

WindowsBase.SetValueCommon

at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at ScreenToGif.Windows.Other.RegionSelector.Select(Monitor monitor, ModeType mode, Rect previousRegion, Action2 selected, Action1 changed, Action`1 gotHover, Action aborted)
at ScreenToGif.Capture.RegionSelectHelper.Select(ModeType mode, Rect previousRegion, Monitor currentMonitor, Boolean quickSelection)
at ScreenToGif.Windows.NewRecorder.d__73.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Windows.NewRecorder.<RegionButton_Click>d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

<!-- gh-comment-id:689755341 --> @wvxwxvw commented on GitHub (Sep 9, 2020): Sorry. WindowsBase.SetValueCommon at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at ScreenToGif.Windows.Other.RegionSelector.Select(Monitor monitor, ModeType mode, Rect previousRegion, Action`2 selected, Action`1 changed, Action`1 gotHover, Action aborted) at ScreenToGif.Capture.RegionSelectHelper.Select(ModeType mode, Rect previousRegion, Monitor currentMonitor, Boolean quickSelection) at ScreenToGif.Windows.NewRecorder.<PickRegion>d__73.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ScreenToGif.Windows.NewRecorder.<RegionButton_Click>d__47.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Author
Owner

@NickeManarin commented on GitHub (Sep 9, 2020):

Thanks, and the exception type and message?

<!-- gh-comment-id:689797132 --> @NickeManarin commented on GitHub (Sep 9, 2020): Thanks, and the exception type and message?
Author
Owner

@NickeManarin commented on GitHub (Sep 9, 2020):

System.ArgumentException
HResult=0x80070057
Message='∞' is not a valid value for property 'Width'.
Source=WindowsBase

Something like this?
If so, are you using Windows 7?

<!-- gh-comment-id:689837353 --> @NickeManarin commented on GitHub (Sep 9, 2020): System.ArgumentException HResult=0x80070057 Message='∞' is not a valid value for property 'Width'. Source=WindowsBase Something like this? If so, are you using Windows 7?
Author
Owner

@wvxwxvw commented on GitHub (Sep 10, 2020):

'∞' is not a valid value for property 'Width'.

Yes.

If so, are you using Windows 7?

Yes, in the first post it is written.

<!-- gh-comment-id:690088210 --> @wvxwxvw commented on GitHub (Sep 10, 2020): > '∞' is not a valid value for property 'Width'. Yes. > If so, are you using Windows 7? Yes, in the first post it is written.
Author
Owner

@NickeManarin commented on GitHub (Sep 10, 2020):

Yes, in the first post it is written.

Ooops. I forgot about it. :/

Anyway, I believe that fixed this issue.
It was caused by the code that detects the system DPI.
I was using an API exclusive to Windows 8 and newer.

<!-- gh-comment-id:690255133 --> @NickeManarin commented on GitHub (Sep 10, 2020): > Yes, in the first post it is written. Ooops. I forgot about it. :/ Anyway, I believe that fixed this issue. It was caused by the code that detects the system DPI. I was using an API exclusive to Windows 8 and newer.
Author
Owner

@wvxwxvw commented on GitHub (Sep 15, 2020):

OK

<!-- gh-comment-id:692393920 --> @wvxwxvw commented on GitHub (Sep 15, 2020): OK
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#582
No description provided.