dotnet / dotnet/wpf

Avoid calling Path.GetTempFileName

Open
#259 3 comments 3 reactions 0 assignees View on GitHub
:construction: work in progress Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

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](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/537936)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.