dotnet/wpf

Avoid calling Path.GetTempFileName

Open

#259 opened on Jan 11, 2019

View on GitHub
 (3 comments) (3 reactions) (0 assignees)C# (6,683 stars) (1,126 forks)batch import
:construction: work in progressEnhancement RequestedGood First Issue

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