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

Question: Call to list all open objects and how to close all of them? #18 #169

Closed
LiorBanai opened this issue Oct 14, 2020 · 2 comments
Closed

Comments

@LiorBanai
Copy link

Hi,

is there are method that list all opens objects with its information?
can those be close in other call or they need to be closed individually?

@JanWosnitza
Copy link
Collaborator

JanWosnitza commented Oct 19, 2020

Hello @LiorBanai,
if it's only about closing all objects, you could create a Property, set it to close-strong and give it to H5Fopen.

Something along these lines (untested):

var property = H5P.create(H5P.FILE_ACCESS);
H5P.set_fclose_degree(property, H5F.close_degree_t.STRONG);
var file = H5F.open("FILE_NAME", H5F.ACC_RDWR, property);
H5P.close(property);

// access file

H5F.close(file); // All open objects remaining in the file are closed then file is closed

also have a look at the c documentation: H5Pset_fclose_degree

@LiorBanai
Copy link
Author

Thanks @JanWosnitza ,
I'll check this out

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

No branches or pull requests

2 participants