声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 4320|回复: 5

[混合编程] 关于“MCR instance is not available”的问题。

[复制链接]
发表于 2006-10-19 11:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
关于“MCR instance is not available”的问题。
基于COM组件技术,使用VC和MATLAB混合编程的应用软件,当在另外一台机子上发布时,怎样脱离MATLAB的运行环境?
我查相关的资料说由于matlab7.X系列的缺陷,与matlab混合编程的应用程序不能脱离matlab环境,所以我就在目标计算机上装了matlab,但是发现,即使装了matlab后,并对组件进行注册,运行时仍然提示:“MCR is not available”。
请高手指教,这是怎么回事,有什么办法解决。
回复
分享到:

使用道具 举报

发表于 2006-10-19 15:13 | 显示全部楼层
Subject:
Why do I receive an "MCRInstance not available" error when deploying an application built with MATLAB Compiler 4.0 (R14)?

Problem Description:
I am trying to run a stand-alone application that was generated with the MATLAB Compiler. However, I receive the following error message when I call the program:

MCRInstance not available


Solution:
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:

This error may occur if the executable file cannot find either the required MATLAB run-time libraries or the CTF archive for your application.

First, check your system path to verify that the MATLAB run-time libraries can be found. If you are testing your application on a development Windows machine, confirm that $MATLAB\bin\win32, where $MATLAB is your root MATLAB directory, appears on your system path and ahead of any other MATLAB installations.

If you are working on a target Windows machine, verify that $MCR_ROOT\runtime\win32, where $MCR_ROOT is your root MATLAB Component Runtime directory, appears on your system path.

For help viewing or modifying the system path, see:

http://www.mathworks.com/support ... ml?solution=1-15ZLK

Next, verify that the .ctf archive file that the MATLAB Compiler generated in the build process resides in the same directory as your program's executable file.
 楼主| 发表于 2006-10-19 19:13 | 显示全部楼层
您说的个资料我也看过,但是还是解决不了问题,难道就只能等mathworks公司改进产品以后才能用吗?
你们遇到这样的问题是怎么解决的,请高手耐心讲一下吧,小弟愁坏了!!!
发表于 2006-10-20 10:12 | 显示全部楼层
原帖由 yinyinboy 于 2006-10-19 19:13 发表
您说的个资料我也看过,但是还是解决不了问题,难道就只能等mathworks公司改进产品以后才能用吗?
你们遇到这样的问题是怎么解决的,请高手耐心讲一下吧,小弟愁坏了!!!


具体这个问题我没有碰到过

一般碰到这类问题i要嘛是根据提示升级到相应版本或者更高版本
要嘛就是根据下面的提示进行设置或者修改,mathworks给出来的方案应该是有效的
发表于 2007-4-22 03:59 | 显示全部楼层
首先应该分别使用mwregsvr和regsvr32注册你的COM组件DLL。
然后把你的组件的CTF文件放到你编写的可执行程序目录下 ,这很重要,否则就会出现MCR instance is not available。
发表于 2008-12-11 13:51 | 显示全部楼层
xl_43400说的对啊
我用7.0就可以啊 没有出现这个问题啊
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-12 11:03 , Processed in 0.094560 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表