For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

The Problem about Memory leak of OCCT 6.5.1 ?

kun yang's picture
Forums: 

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!

Attachments: