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

Fix dangling file handle on windows. #60

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Fix dangling file handle on windows. #60

merged 2 commits into from
Feb 6, 2024

Conversation

atmoos
Copy link
Owner

@atmoos atmoos commented Feb 5, 2024

Fixes the dangling file handle on windows.

Tested both on linux and windows.

closes #59

@atmoos atmoos added the bug Something isn't working label Feb 5, 2024
@atmoos atmoos requested a review from sereneowl February 5, 2024 14:03
@atmoos atmoos self-assigned this Feb 5, 2024
@atmoos
Copy link
Owner Author

atmoos commented Feb 5, 2024

Hi @RaduTerec

This PR fixes a bug in the exporter I wrote to "export" benchmark results. We would/should eventually move this to the BenchView project.

It may prove useful as a starting point for an in-process exporter.

@atmoos atmoos merged commit e24a7b8 into main Feb 6, 2024
2 checks passed
@atmoos atmoos deleted the fixExporter branch February 6, 2024 12:40
Update(source, tmpFile, result);
}
finally {
File.Move(tmpFile, source.FullName, overwrite: true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if the tmpFile could not be created because of permissions or some other weird reasons?

@sereneowl
Copy link
Collaborator

sereneowl commented Feb 6, 2024

I couldn't reply to your earlier comment, so, for the BenchView I created a first issue for exporting the Benchmark results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark exporter crashes on Windows
2 participants