Unidata / netcdf-java

The Unidata netcdf-java library
https://docs.unidata.ucar.edu/netcdf-java/current/userguide/index.html
BSD 3-Clause "New" or "Revised" License
142 stars 69 forks source link

netcdfAll-5.5.3.jar Unable to release handle after reading file #1258

Closed wfYue0808 closed 10 months ago

wfYue0808 commented 10 months ago

Versions impacted by the bug

netcdfAll-5.5.3.jar

What went wrong?

Please describe the bug.

Relevant stack trace

try (NetcdfFile ncfile = NetcdfFiles.open(path)) {
// Do cool stuff here
} catch (IOException ioe) {
ioe.printStackTrace();
}
System.out.println("111111");
Break point on the last line,After starting debugging,Attempting to delete the read in file, Win11 shows that it cannot be deleted,Why is this

Relevant log messages

No response

If you have an example file that you can share, please attach it to this issue.

If so, may we include it in our test datasets to help ensure the bug does not return once fixed? Note: the test datasets are publicly accessible without restriction.

Yes

Code of Conduct

tdrwenski commented 10 months ago

Duplicate of https://github.com/Unidata/netcdf-java/discussions/1257