|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我调用UF_MODL_create_fixed_dplane(),用UF_get_fail_message得到错误信息是Internal error :memory access violation~!
怎么修改这类错误?
代码:
double dpoint[3];
double direction[3];
tag_t* dplane_tag = NULL;
if(i_direction == 0)
AfxMessageBox("请选择参考面所在平面!");
switch(i_direction)
{
case 11:
direction[0] = 0;
direction[1] = 0;
direction[2] = 1;
break;
case 22:
direction[0] = 0;
direction[1] = 1;
direction[2] = 0;
break;
case 33:
direction[0] = 1;
direction[1] = 0;
direction[2] = 0;
break;
default:
break;
}
dpoint[0] = 0.0;
dpoint[1] = 0.0;
dpoint[2] = 0.0;
int ret = UF_CALL(UF_MODL_create_fixed_dplane(dpoint,direction,dplane_tag));
/*if(!UF_CALL(UF_MODL_create_fixed_dplane(dpoint,direction,dplane_tag)))*/
if(ret == 0)
AfxMessageBox("create datum plane succeeded!");
else
{
char message[133];
UF_get_fail_message(ret, message );
AfxMessageBox(message );
} |
|