<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Jane,<br>
I have found a bug in "imprint" method of OCCModifyEngine class. As
saw below:<br>
<br>
TopoDS_Shape new_from_shape = splitor.Shape();<br>
if(from_shape->TShape()->ShapeType() ==
TopAbs_COMPSOLID)<br>
{<br>
TopoDS_CompSolid old_csolid = TopoDS::CompSolid(*from_shape);<br>
OCCBody::update_OCC_entity(old_csolid, new_from_shape,
&splitor);<br>
from_shape->Nullify();<br>
<font color="#ff0000"> delete from_shape;<br>
from_shape = new TopoDS_Shape(new_from_shape);<br>
</font> }<br>
<br>
else if(from_shape->TShape()->ShapeType() ==
TopAbs_SOLID)<br>
{<br>
TopoDS_Solid old_solid = TopoDS::Solid(*from_shape);<br>
OCCLump::update_OCC_entity(old_solid, new_from_shape,
&splitor);<br>
from_shape->Nullify();<br>
<font color="#ff0000"> delete from_shape;<br>
from_shape = new TopoDS_Shape(new_from_shape);<br>
</font> }<br>
else if(from_shape->TShape()->ShapeType() ==
TopAbs_SHELL)<br>
{<br>
TopoDS_Shell old_shell = TopoDS::Shell(*from_shape);<br>
OCCShell::update_OCC_entity(old_shell,new_from_shape,
&splitor);<br>
from_shape->Nullify();<br>
<font color="#ff0000"> delete from_shape;<br>
from_shape = new TopoDS_Shape(new_from_shape);<br>
</font> }<br>
else if(from_shape->TShape()->ShapeType() ==
TopAbs_FACE)<br>
{<br>
TopoDS_Face old_face = TopoDS::Face(*from_shape);<br>
OCCSurface::update_OCC_entity(old_face,new_from_shape,
&splitor);<br>
from_shape->Nullify();<br>
<font color="#ff0000"> delete from_shape;<br>
from_shape = new TopoDS_Shape(new_from_shape);<br>
</font> }<br>
After "from_shape" pointer is deleted using "delete" function, when we
try call "new" function the program crushed.<br>
<br>
Best regards,<br>
Leidy<br>
<br>
</body>
</html>