3 comments (3 comments)3 reactions (3 reactions)0 assignees (0 assignees)C#1,126 forks (1,126 forks)batch import
:construction: work in progressEnhancement RequestedGood First Issue
Repository metrics
- Stars
- 6,683 stars (6,683 stars)
- PR merge metrics
- Avg merge 2d 7h (Avg merge 2d 7h)41 merged PRs in 30d (41 merged PRs in 30d)
Description
System.Windows.Input.Cursor.LoadFromStream may throw IOException.
DevDiv\FX\Rel\Net471Rel1Last\wpf\src\Core\CSharp\System\Windows\Input\Cursor.cs calls Path.GetTempFileName which will throw if the %TEMP% directory contains too many temp files (65k).
Reported by customer as VS Feedback issue
Contributor guide
- Research direction
- Replace the usage of Path.GetTempFileName with a safer alternative like Path.GetTempPath() combined with generating a unique filename using Guid or similar, to avoid the IOException caused by exceeding the maximum number of temporary files (65k) in the %TEMP% directory.
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Prerequisites
- C#