View Issue Details

IDProjectCategoryView StatusLast Update
0025577Open CASCADEOCCT:Codingpublic2015-01-28 11:01
ReporteraznAssigned Toazn 
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version6.7.0 
Target Version6.9.0 
Summary0025577: Avoid invocation of virtual Methods of the declared Class in a Constructor or Destructor
DescriptionInvoking virtual Methods in a constructor always invokes the Method for the current Class, or its base, even when the constructor is invoked as part of the construction of a derived Class. This also applies to virtual Methods called in a Destructor.
Steps To Reproducebot applicable
Additional information
and documentation updates
This problem is connected with cdl-mechanism. Virtual methods Delete() or Destroy() are called in Destructors of following classes:

- Adaptor2d_Curve2d
- Adaptor3d_Curve
- Adaptor3d_Surface
- AppBlend_Approx
- AppCont_Function
- AppParCurves_MultiCurve
- AppParCurves_MultiPoint
- ApproxInt_SvSurfaces
- BRepPrim_OneAxis
- BRepSweep_NumLinearRegularSweep
- CDM_Document (Destroy method)
- DBC_BaseArray
- GeomFill_Profiler
- Graphic3d_DataStructureManager (Destroy method)
- HatchGen_PointOnHatching
- Interface_CopyTool (Destroy method)
- math_BFGS
- math_FunctionSet
- math_FunctionSetRoot
- math_FunctionWithDerivative
- math_MultipleVarFunctionWithGradient
- OSD_Chronometer (Destroy method)
- ProjLib_Projector
- PrsMgr_Presentation (Destroy method)

It is necessary to move functionality of these methods in Destructors and remove them.
TagsNo tags attached.
Test case number

Relationships

duplicate of 0025622 closedbugmaster CAST analysis: Avoid invocation of virtual Methods of the declared Class in a Constructor or Destructor 
related to 0025720 closedbugmaster Incorrect code of math classes can lead to unpredicted behavior of algorithms 

Activities

azn

2015-01-26 11:02

developer   ~0036500

Dear BugMaster,
Please close this issue, because it is a copy of 0025622 track.

Issue History

Date Modified Username Field Change
2014-12-09 15:35 azn New Issue
2014-12-09 15:35 azn Assigned To => azn
2014-12-09 15:36 azn Assigned To azn => abv
2015-01-26 10:38 azn Relationship added related to 0025720
2015-01-26 11:02 azn Note Added: 0036500
2015-01-26 11:02 azn Assigned To abv => bugmaster
2015-01-26 11:02 azn Status new => resolved
2015-01-26 11:02 azn Steps to Reproduce Updated
2015-01-26 11:12 abv Relationship added duplicate of 0025622
2015-01-28 11:01 bugmaster Status resolved => closed
2015-01-28 11:01 bugmaster Assigned To bugmaster => azn
2015-01-28 11:01 bugmaster Resolution open => duplicate