马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我在PROE插件中提取当前模型的参数,到ProArrayAlloc时PROE自动退出,不知道什么原因。代码如下:
ProError err;
ProMdl model = NULL;
ProName wname;
ProCharName cmodel_Code;
err = ProMdlCurrentGet(&model);
err = ProMdlNameGet(model, wname);
ProWstringToString(cmodel_Code, wname);
ProModelitem mdlitem;
err = ProMdlToModelitem(model, &mdlitem);
if (err != PRO_TK_NO_ERROR)
return err;
ProParameter **pProeParams;
ProParamvalue paraValue;
ProParamvalueType valueType;
err = ProArrayAlloc(0, sizeof(ProParameter), 1, (ProArray*)pProeParams);
err = ProParameterVisit(&mdlitem, (ProParameterFilter)ParameterFilterFn, (ProParameterAction)ParameterActionFn, (ProAppData)&pProeParams);
我跟踪发现到调用ProArrayAlloc这句时PROE就退出了,谁能告诉我什么问题? |