Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:09:23+00:00 2026-05-27T18:09:23+00:00

I am trying to compile a COM object in Matlab 2011a using Matlab Builder

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:09:23+00:00Added an answer on May 27, 2026 at 6:09 pm

    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.

    Testing with the MCR
    When you test with the MCR, keep in mind that the MCR is an instance of
    MATLAB. Given this, it is not possible to load the MCR into MATLAB.
    For example, if you build a generic COM component with the Deployment
    Tool from MATLAB Builder NE, you generate a DLL.
    If you then try to test the component with an application such as actxserver,
    which loads its process into MATLAB, you are effectively loading the MCR
    into MATLAB, producing an error such as this:
    mwsamp.mymagic(3,[],[])
    ??? Invoke Error, Dispatch Exception:
    Source: tmw1.Class1.1_0
    Description: MCR instance is not available
    Therefore, understand the behaviors of third-party processes before
    attempting to test them with the MCR.
    If you are uncertain about the behavior of these processes, contact your
    developer or systems administrator.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a property: <property name=classes value=com.package.Class1,com.package.Class2 /> I'm trying to compile only the classes
While trying to compile a 64 bit linux kernel using gcc, I see the
I'm trying to compile the basic tutorial program at http://doc.trolltech.com/4.4/mainwindows-application.html and running into a
I'm trying to create an object of a class, using just a name of
In trying to implement the Twitter code at http://www.voiceoftech.com/swhitley/?p=681 I am getting a compile
I am trying to access COM object from on the fly compiled C# code.
I've created a C# COM object, and am trying to instantiate it from VBscript
everyone, I was trying to compile a program using C++/CLI to check my stocks,
I'm trying to compile a python program using jython and it's throwing below error
I'm trying to package an Android app which uses RoboGuice. The .class files compile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.