ifcplusplus icon indicating copy to clipboard operation
ifcplusplus copied to clipboard

std::exception("bad allocation")

Open ichimv opened this issue 8 years ago • 1 comments

We created a custom IFC export on top of IFCPlusPlus library and got std::exception("bad allocation") for a very big model most probably because of memory fragmentation. We would recommend to not abuse with using of the smart pointers. Please let us know if there is a solution to avoid memory fragmentation and do the export using batches: split the model in smaller parts.

ichimv avatar Jul 14 '17 06:07 ichimv

I too created an ifc import and export on top of ifc++. We recomend to our customers to export each building storey into its own ifc file. That way we work around programs not being able to process large files, plus the HVAC people and the architects like it. I hope that helps. PS: I don't observe memory fragmentation problems.

dominichofer avatar Jul 18 '17 06:07 dominichofer