rdmenezes / ifcplusplus

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

Fatal Error during starting of debug version of ifcplusplus library #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Visual C++ 2008, SP1.

\IfcPlusPlus\src\ifcpp\reader\IfcStepReader.cpp line 37.

For fixing thi serror may use the following code:

void InitIfcPPEntityEnumList()
{
    if (map_string2entity_enum.empty())
    {
        int n = sizeof(initializers_IfcPP_entity) / sizeof(initializers_IfcPP_entity[0]);
        for(int i = 0; i < n; ++i)
        {
            map_string2entity_enum.insert(initializers_IfcPP_entity[i]);
        }
    }
}

line 113:
    if( keyword.size() > 0 )
    {
        InitIfcPPEntityEnumList();

I attached a fixed IfcStepReqader.cpp file.

Best Regards, Geets Andrey.

Original issue reported on code.google.com by geecandrey on 14 Jun 2013 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
The above code does not work with VS 2012.
The original code works with VS 2010, 2012, and gcc.

Is it maybe a different error? What is the state of the map 
"initializers_IfcPP_entity"?

Original comment by fabian.g...@gmail.com on 23 Jun 2013 at 5:55

GoogleCodeExporter commented 9 years ago
Sorry, i was trying to rebuild all project with the "ifcplusplus" library. The 
original code is working correctly. The issue my be closed.

Original comment by geecandrey on 24 Jun 2013 at 8:58

GoogleCodeExporter commented 9 years ago
closed

Original comment by fabian.g...@gmail.com on 14 Sep 2013 at 11:02