Why does the MATLAB process fail to terminate after I have used ACTXSERVER to call a COM object?
7 views (last 30 days)
Show older comments
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
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!