dotnet/wpf

Avoid calling Path.GetTempFileName

Offen

#259 geöffnet am 11.01.2019

 (3 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)C# (1.126 Forks)batch import
:construction: work in progressEnhancement RequestedGood First Issue

Repository-Metriken

Stars
 (6.683 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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