| The Problem about Memory leak of OCCT 6.5.1 ? |
 |
| kun yang |
2012/09/06 06:49 |
We have made a simple demo , the code which has been attached is mainly as follows:
TColgp_Array1OfPnt array1 (1,5); // sizing array
array1.SetValue(1,gp_Pnt (-4,0,2 ));
array1.SetValue(2,gp_Pnt (7,2,2 ));
array1.SetValue(3,gp_Pnt (-6,3,1 ));
array1.SetValue(4,gp_Pnt (-4,3,-1));
array1.SetValue(5,gp_Pnt (-3,5,-2));
array1.SetValue(1,gp_Pnt (-4,0,2 ));
array1.SetValue(2,gp_Pnt (-5,2,2 ));
array1.SetValue(3,gp_Pnt (-5.5,4,1 ));
array1.SetValue(4,gp_Pnt (-4.5,6,-1));
array1.SetValue(5,gp_Pnt (-5,8,-3));
Handle(Geom_BSplineCurve) SPL1 = GeomAPI_PointsToBSpline(array1).Curve();
We have used a test Tool which can test Memory leak,called Visual Leak Detector .And even,The tool Visual Leak Detector can detect if the static object is released accurately!
When we use the Detector tool ,we find OCCT come into Memory leak!I have set the environment variable MMGT_OPT=0, but there is still Leak in memory(Please see the Test Report of OCC Memory Leak.txt ).
Thanks for help! |
|
You have to be logged in to download the attached file
|
 |
| | | |