# Memory allocation failed for raw data chunk

**URL:** <https://forum.hdfgroup.org/t/memory-allocation-failed-for-raw-data-chunk/5721>\
**Category:** HDF5 Library\
**Created:** [April 30, 2019, 10:39pm UTC](https://forum.hdfgroup.org/t/memory-allocation-failed-for-raw-data-chunk/5721 "2019-04-30T22:39:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![steven](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/steven/32/117_2.png) [@steven](https://forum.hdfgroup.org/u/steven)\
**Post date:** [May 1, 2019, 2:12pm UTC](https://forum.hdfgroup.org/t/memory-allocation-failed-for-raw-data-chunk/5721/3 "2019-05-01T14:12:13Z")

</div>

One way to find out is by using [valgrind](http://valgrind.org/).

From your description it is not possible to tell what is inside the loop, and how resource allocations are handled; however I can tell that the HDF5 CAPI checked out fine for all recent versions.  
If C++ is an options for you, then recommend you H5CPP an easy to use persistence for modern C++. Its packet table implementation is profiled, and covers most use cases.

[Chris Drozdowski](https://forum.hdfgroup.org/t/compiling-h5cpp-with-visual-studio-2017/5670/2) got H5CPP up working on Windows – by making adjustment to the header files.

Here are his words:

> Your project is simply awesome! Just a few lines of code allows me to generate the HDF5 files I need. You’ve done a great service to the community.

If you are interested in the windows setup either contact him, or I can post his method. As soon as schedule allows I will incorporate his method as well as a cross compiled binary of the [LLVM based reflection tool](https://github.com/steven-varga/h5cpp-compiler) for windows.

hope it helps: steve

---

_[View the full topic](https://forum.hdfgroup.org/t/memory-allocation-failed-for-raw-data-chunk/5721)._
