Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in ImageCompressor.cs #43

Open
hmatiske opened this issue Nov 4, 2014 · 1 comment
Open

Problem in ImageCompressor.cs #43

hmatiske opened this issue Nov 4, 2014 · 1 comment

Comments

@hmatiske
Copy link
Contributor

hmatiske commented Nov 4, 2014

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();
@sayedihashimi
Copy link
Member

Ok thanks for the report. If you submit a PR that will speed up the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants