MantisBT - Community
View Issue Details
0007287Community[OCCT] OCCT:Foundation Classespublic2004-11-24 08:582006-06-29 09:15
bugmaster 
ofv 
normaltrivial 
closedfixed 
All
 
[OCCT] 5.2.2 
0007287: Problem of Memory Leak
This problem was reported by Marcel Keller - see forum thread
http://www.opencascade.org/org/forum/thread_7199/ [^]

Marcel Keller :
We recieved indications of memory leak problems from one of our customers and
simplified the code as shown below. After the for-loop memory increased about 30MB.

#include "TopoDS_Shape.hxx"
#include "TopoDS_Solid.hxx"
#include "BRepPrimAPI_MakeBox.hxx"
#include "BRepAlgoAPI_Cut.hxx"


int main(int argc, char* argv[])
{
TopoDS_Solid box1;
TopoDS_Solid box2;
for (int i=0; i<1000; i++){
box1 = BRepPrimAPI_MakeBox(100,100,100);
box2 = BRepPrimAPI_MakeBox(50,50,50);
BRepAlgoAPI_Cut cutOperation(box1, box2);
}
return 0;
}
Documentation remark, added by Oleg FEDYAEV (ofv) 2004-12-06 14:18:09:

Improvements:
Some memory leaks actual for boolean operations in memory management mode
MMGT_OPT = 0 are fixed.
No tags attached.
zip ofv7287-v1.zip (18,552) 2004-11-30 15:29
https://tracker.dev.opencascade.org/
zip ofv7287-v2.zip (20,928) 2004-12-06 13:58
https://tracker.dev.opencascade.org/
zip adaptor3d_upd.zip (5,475) 2004-12-07 08:45
https://tracker.dev.opencascade.org/
zip ofv7287-fin.zip (8,252) 2004-12-07 09:21
https://tracker.dev.opencascade.org/
Issue History
2004-11-24 12:35bugmasterAssigned Tobugmaster => mkk
2004-11-24 12:35bugmasterStatusnew => assigned
2004-11-24 12:55mkkAssigned Tomkk => ofv
2004-12-01 12:55apvCC => apv, ofv
2004-12-03 16:44abvCC => msv
2004-12-06 16:16ofvStatusassigned => resolved
2004-12-08 14:01apvCC => aki
2004-12-14 11:37akiStatusresolved => tested
2004-12-15 08:43bugmasterStatustested => verified
2004-12-24 08:58bugmasterStatusverified => closed
2004-12-24 08:58bugmasterResolution@0@ => fixed
2005-01-12 18:59vtnCustomer => Community
2011-08-02 11:23bugmasterCategoryOCCT:FDC => OCCT:Foundation Classes

There are no notes attached to this issue.