ScreenToGif
ScreenToGif copied to clipboard
[Bug] A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled).
Describe the bug
A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled).
at System.Threading.Tasks.Task.Dispose(Boolean disposing)
at System.Threading.Tasks.Task.Dispose()
at ScreenToGif.Capture.BaseCapture.DisposeInternal() in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Capture\BaseCapture.cs:line 175
at ScreenToGif.Capture.BaseCapture.DisposeAsync() in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Capture\BaseCapture.cs:line 184
at ScreenToGif.Windows.NewRecorder.PrepareCapture(Boolean isNew) in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Windows\NewRecorder.xaml.cs:line 1394
at ScreenToGif.Windows.NewRecorder.Record() in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Windows\NewRecorder.xaml.cs:line 1033
To Reproduce Steps to reproduce the behavior:
- Go into the "recorder".
- Press F7.
- See error
Expected behavior Record my screen properly.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 11
- Version: 2.38.1
Additional context Add any other context about the problem here.
This is the similar issue to #1161.
The top of the stacktrace is similar also to this issue #1225. I've tried to repro this in some way but never got any issues.