AzureJobs
AzureJobs copied to clipboard
Problem in ImageCompressor.cs
trafficstars
The line 12
string targetFile = Path.ChangeExtension(Path.GetTempFileName(), Path.GetExtension(sourceFile));
creates each time a temp file, which ist not deleted. There is a limit of 65536 temp files. After this count the GetTempfileName function throws an IOException.
One Solution is to replace the line with
string targetFile = Path.GetTempFileName();
Ok thanks for the report. If you submit a PR that will speed up the process.