MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #28889 All Revisions ] Back to Issue ]
Summary 0028889: Visualization, V3d_View - View specific Graphic3d_Structure should be removed if the view is removed
Revision 2017-07-04 12:45 by Vico Liang
Description There are some Graphic3d_Structure are view specific, such as V3d_Trihedron, Grid. These structure should be removed if the host view is removed and it will caused crash if not.

Please see below cases:

1. view->TriedronDisplay();
2. view->Remove();
3. view->StructureManager()->RecomputeStructures();

The last step will access deleted V3d_Trihedron pointer in below method:
 class V3d_Trihedron::TrihedronStructure
  virtual void Compute() Standard_OVERRIDE { myTrihedron->compute(); }

Revision 2017-07-04 12:41 by Vico Liang
Description There are some Graphic3d_Structure are view specific, such as V3d_Trihedron, Grid. These structure should be removed if the host view is removed and it will caused crash if not.

Please see below cases:

1. view->TriedronDisplay();
2. view->Remove();
3. ver->StructureManager()->RecomputeStructures();

The last step will access deleted V3d_Trihedron pointer in below method:
 class V3d_Trihedron::TrihedronStructure
  virtual void Compute() Standard_OVERRIDE { myTrihedron->compute(); }



Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker