Please delete this line and goto HDF5Writer.def and at a default constructor to the struct ThreadParams and set dataCollector there to NULL. If someone use dataCollector e.g. in HDF5Writer constructor this also crash.