External program that uses HDF5 fails
5 次查看(过去 30 天)
显示 更早的评论
Hi!
I have a home-written and compiled (VS2019 ) cpp program that I'd like to call as part of matlab script. As a part of this program, it uses HDF5 C library and HighFive wrapper to load some file (also OMP and Eigen, but the problems happens the calls tho these libs). Unfortunateley, when called from matlab (via "system"), the program fails exactly where it tries to open an HDF .h5 file (in read-only, file is not opened in matlab) wo any error message (with only windows "has stopped working" error window). When called from just windwos cmd with the same parameters, it works just fine.
Any suggestions to fix that?
Thank you in advance!
1 个评论
Walter Roberson
2020-3-28
Is it possible that it relies on the Windows PATH environment variable to locate some exe or dll, and is not finding it when called inside of MATLAB because MATLAB is controlling the PATH environment variable itself?
I would suggest using a process monitor such as https://docs.microsoft.com/en-us/sysinternals/downloads/procmon to see what the process is trying and failing to do.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDF5 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!