rdmenezes / ifcplusplus

Automatically exported from code.google.com/p/ifcplusplus
Other
0 stars 0 forks source link

Feature Request: need for memory error handler when IFC++ fails loading big IFC files. #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IFC++ loading the 288-Mb IFC file has been tested on two PCs. The file can be 
found at http://download2cf.nemetschek.net/www_misc/bim/DCR-LOD_300.zip

The first PC, with 16Gb of RAM, loaded and displayed the IFC file just fine, 
and the other with 4Gb of RAM never completed the loading and got hanging with 
no error messages.

The addition (or, fixing if already present) of an error handler signalling the 
memory issue while loading is needed.

Thanks

Original issue reported on code.google.com by ivano....@gmail.com on 7 Aug 2014 at 12:14

GoogleCodeExporter commented 9 years ago
Memory allocation error handling is not implemented yet, because it was not 
important for the project I'm working on at the moment.

I'm also thinking about reducing the memory footprint by defining for example 
IfcLengthMeasure simply as double, not as an object.
That would reduce the memory for one value from 64 to 8.
But then it is not possible to use inheritance for SELECT types like 
TYPE IfcBendingParameterSelect = 
SELECT  (IfcLengthMeasure   ,IfcPlaneAngleMeasure);

It is not important for me at the moment, so I cannot promise when I can spend 
time on this.

Original comment by fabian.g...@gmail.com on 7 Aug 2014 at 5:13

GoogleCodeExporter commented 9 years ago
Ok got it. Thanks for accepting the feature request for now.

Original comment by ivano....@gmail.com on 7 Aug 2014 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by fabian.g...@gmail.com on 8 Jan 2015 at 11:27