||
Why do I receive the error "Failed to decrypt file" when running a stand-alone executable generated by MATLAB Compiler 4.0 (R14)?
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. |
好记忆不如烂笔头,坚持将自己遇到的问题及解决方法记下来,以防今后遇到相同问题而苦苦求索。
用matlab编译的可执行文件放到另一台机器上运行时遇到了这个问题:failed to decrypt file。于是上网找了一下,找到了上面这个相关的technical solution,但是不知道何为ctf文件。后来一想,我原来编译过的可执行文件在这台机器上运行过,可能产生了相关的文件,现在我装了一个最新版本的matlab,编译生成的可执行文件重新运行,但仍是调用之前的相关文件,从而产生错误,于是将C:Documents and Settings用户名Local SettingsTemp下的文件删除,重新运行,OK。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-7-28 02:29
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社