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

Mat_VarGetStructFieldByName doesn't work with HDF library above 1.8.16 #90

Closed
charlestamz opened this issue Apr 23, 2018 · 1 comment
Closed
Labels

Comments

@charlestamz
Copy link

Hey, guys
I have found an issue that related to the higher version of hdf library (above 1.8.16). My code snipper
is like :

                    matvar_t * shrink = Mat_VarGetStructFieldByName(pChnsfield, "shrink", 0);
                    assert(shrink != NULL);
                    paraPyr.chnsParas.shrink = *((double *) shrink->data); //shrink->data becomes null with 1.8.19 or 1.8.20 hdf library

this code works perfectly with version1.8.16 of hdf library.
But it doesn't work with 1.8.19 or later version of hdf library.
I spent some time debugging but haven't found out the reason.
Hope you can give me some help.
Thanks.
Charles Tamz

@tbeu
Copy link
Owner

tbeu commented Apr 23, 2018

I need more information, since I see that Mat_VarGetStructFieldByName performs on the testsuite as expected.

  1. How dou generate the MAT file? In MATLAB or using matio? If matio, which version and which HDF5 version do you use. If HDF5, do you use pre-compiled or self-compiled binaries?
  2. Please attach a test MAT file and some C/C++ file I can run and debug to reproduce the observed behaviour!

@tbeu tbeu added the invalid label May 14, 2018
@tbeu tbeu closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants