Why does the MATLAB process fail to terminate after I have used ACTXSERVER to call a COM object?

3 views (last 30 days)
I am using MATLAB to interact with my COM object using ACTXSERVER. After I have worked with the COM object, I then exit MATLAB. The MATLAB process, however, does not terminate. In order to stop this process, I have to kill MATLAB from the Windows Task Manager.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 12 Mar 2010
This behavior is caused by how certain COM servers handle terminating. Some COM servers will not exit unless they have been properly shutdown. For example, in Excel you must close all open sheets. After appropriately terminating the COM server, MATLAB will exit correctly.

More Answers (0)

Products


Release

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!