Crash when I call body2->GetTessellation() API of solidworks?

Hi,

I want to create tessellated object of temporary body.  My code is as follow.

CComPtrtesselationDis = NULL;
CComVariant faceList = NULL;
pBody->GetTessellation(faceList, &tesselationDis);

There is crash when I call pBody->GetTessellation() function.

please find attached issue.png

SolidworksApi/macros