Closed rickrain closed 2 years ago
Hi @rickrain You are right, this seems a little bit strange. Would you be so kind to provide a link to your code base or repository where this is used, so I can make sure to fully understand the context before making any changes. Thanks, Stefan
Hi @stefanmaierhofer, I don't have a repo to point you to. Was just experimenting with something and ran into this. For additional context, I used PointFileInfo and then later tried to delete the file. But, since the file handle is left open the delete fails.
I just submitted PR #23 for review.
Hi @rickrain, I just merged your pull request. If all goes well, our CI pipeline should publish new Nuget packages (version 5.2.5) in a few minutes.
This method is opening a
FileStream
here but it doesn't close it.We're able to work around this by forcing a
System.GC.Collect()
call, but would prefer not to have to do that.