Standard_NoSuchObject

hi all,
i have an exception Standard_NoSuchObject when the Remove command is executed:
po_ais_context->OpenLocalContext ();
po_ais_shape = new AIS_Shape(o_topo_edge);
po_ais_context->Display (po_ais_shape, true);
po_ais_context->Remove (po_ais_shape);
what is a reason of that?
best regards,
adrian

Rodrigo Castro Andrade's picture

Hello Adrian,

The same problem happened to me after I upgraded from OCCT 6.7.9 to 6.8.0. Only solution I found was to close the context (po_ais_context->CloseAllContexts()) before removing the shape. I'm not even sure if removing something from a closed context makes sense.

Good luck,
Rodrigo