I am trying to compile a COM object in Matlab 2011a using Matlab Builder NE.
I managed to build and package it, deploy it, and even to start the COM server.
I am using the following command in Matlab
c = actxserver(‘MyFirstComServer.Class1’);
However, when I try to run any method on this handle, I get an error message like that:
c.GetNames(0,”)
??? Invoke Error, Dispatch Exception:
Source: MyFirstComServer.Class1.1_0
Description: MCR instance is not available
I have found something on the web related to it, however, it did not help me
http://www.mathworks.com/support/solutions/en/data/1-2VS4TC/index.html?product=MN&solution=1-2VS4TC
Does anybody have any idea what to do?
Edit:
I’ve found out that the problem happens only if I call the component from Matlab.. This might have to do something with MCR confusion, the COM component uses the same MCR that Matlab uses.
I’ve found out that the problem happens only if I call the component from Matlab.. This might have to do something with MCR confusion, the COM component uses the same MCR that Matlab uses.
Edit(1) From Builder NE manual.