当代明月分享 http://blog.sciencenet.cn/u/chenfanglin

博文

错误“Failed to decrypt file”解决办法

已有 9428 次阅读 2009-3-11 09:47 |个人分类:Matlab|系统分类:科研笔记

Technical Solutions

Why do I receive the error "Failed to decrypt file" when running a stand-alone executable generated by MATLAB Compiler 4.0 (R14)?


 

 

Subject:

Why do I receive the error "Failed to decrypt file" when running a stand-alone executable generated by MATLAB Compiler 4.0 (R14)?

Problem Description:

I have used MATLAB Compiler 4.0 (R14) to successfully generate a stand-alone executable. However when I attempt to run my executable, I receive the following message:
Failed to decrypt file.
The M-file
...<proj_name>_mcrtoolboxcompilerdeploymatlabrc.m"
cannot be executed.
Additionally, on the Windows platform, I receive a Windows dialog box with the following error message:
Microsoft Visual C++ Runtime Library

Runtime Error!

Program: C:RCtest.exe

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Solution:

This error generally indicates that the CTF archive file was created in a different MCC compilation from that of the stand-alone executable.

To correct this issue, refer to the following steps:

1. Remove both the executable and CTF-files from your system.
2. Recompile your application using the MATLAB Compiler's MCC command.
3. Copy new executable and CTF-files to your target machine.

 

好记忆不如烂笔头,坚持将自己遇到的问题及解决方法记下来,以防今后遇到相同问题而苦苦求索。

用matlab编译的可执行文件放到另一台机器上运行时遇到了这个问题:failed to decrypt file。于是上网找了一下,找到了上面这个相关的technical solution,但是不知道何为ctf文件。后来一想,我原来编译过的可执行文件在这台机器上运行过,可能产生了相关的文件,现在我装了一个最新版本的matlab,编译生成的可执行文件重新运行,但仍是调用之前的相关文件,从而产生错误,于是将C:Documents and Settings用户名Local SettingsTemp下的文件删除,重新运行,OK。



https://blog.sciencenet.cn/blog-3199-219596.html

上一篇:常用软件快捷键:WinEdit and MathType
下一篇:一些经常要用到但又常忘的命令
收藏 IP: .*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-23 20:23

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部