dtDeleteObject crashes in caching mode
Brought to you by:
omichel
In caching mode (dtEnableCaching), it is not possible
to delete an object without crashing the application.
The dtDeleteObject() and DtDeleteShape() functions
seems to either crash or corrupt Solid internal
representation, so that the next call to dtTest()
crashes.
The workaround proposed by Gino:
dtSelectObject(object);
dtTranslate(M_INFINITY,M_INFINITY,M_INFINITY);
dtClearObjectResponse(object);
dtTest();
dtDeleteObject(object);
dtDeleteShape(shape);
doesn't seem to work...
Disabling caching just before deleting the object and
reenabling caching after doesn't work either.