[Bug report/Enhancement request] new[]/delete[] operators should be redefined to use OCC allocation

The new[] operator (e.g. used in arrays/vectors) is not redefined in OCC classes and thus does not take advantage of OCC memory allocation mechanism (Standard::Allocate(), Standard::Free()). Instead it defaults to standard new/delete [] operators.

TopTools_Array1OfShape anArray (1, 10);
will underneath call new TopoDS_Shape[10] which will NOT call Standard::Allocate().

We discussed this issue with Andrey Betenev a while ago, so maybe there is already a bug registered. In this case, please just post an ID here for future tracking.

Forum supervisor's picture

Dear Roman,
I would like to inform you that the posted problem has been checked & confirmed.
The corresponding issue with ID = 22816 has been registered.
Later you may check if the issue is resolved by checking references to the specified ID in OCCT Release Notes. The analysis of the issue will take some time depending on our technical capability and availability of resources.