|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
调试的时候提示说内存冲突,不解,想请大家来帮帮忙,致谢!
源代码:
int MY_open()
{
UF_UI_err_t error_handler;
char * file_name = "A.prt", err_message[] = "";
logical use_display_file = FALSE;
tag_t part_tag = NULL_TAG;
int response;
const char *message = "part open error";
UF_PART_load_status_t part_status;
error_handler.type = UF_UI_open_part_fun;
error_handler.fun.open = my_error_handler;
error_handler.fun_data.size = strlen ( message ) + 1;
error_handler.fun_data.data = message;
response = UF_UI_open_part (&error_handler, file_name, &use_display_file, &part_tag, &response, &part_status);
UF_get_fail_message(response, err_message);
if ( part_status.statuses != NULL )
UF_free ( part_status.statuses );
if ( part_status.file_names != NULL )
UF_free_string_array ( part_status.n_parts ,part_status.file_names );
uc6476(1);
if ( part_tag==NULL_TAG )
return 1;
else
return 0;
} |
|