-
Notifications
You must be signed in to change notification settings - Fork 589
Attempt to get a named shape for a shape leads to a crash #758
Copy link
Copy link
Closed
Labels
0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categoriesThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Application FrameworkCAF/XCAF/OCAF and other cases related with OCCT documentCAF/XCAF/OCAF and other cases related with OCCT document2. BugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categoriesThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Application FrameworkCAF/XCAF/OCAF and other cases related with OCCT documentCAF/XCAF/OCAF and other cases related with OCCT document2. BugSomething isn't workingSomething isn't working
Type
Projects
Status
Closed
Description
A shape or a sub-shape may be selected for an operation, but then the shape is deleted from the document. An attempt to get the named shape of the deleted shape leads to a crash. It happens on resolving of the selected shape.
Expected Behavior
A returned named shape could be nullptr instead of a crash.
Actual Behavior
Crash.
Sample Code or DRAW Tcl Script
Handle(TNaming_NamedShape) ns = TNaming_Tool::NamedShape(selShape, accessLabel);
Operating System
Windows
Compiler
MSVC
Bitness
32-bit
OCCT Version
latest
Additional Files
No response