フィルターのクリア

How to remove ATL control from MATLAB after used?

2 ビュー (過去 30 日間)
Mathew
Mathew 2016 年 11 月 15 日
回答済み: Mathew 2018 年 5 月 15 日
MATLAB loaded the VC++ generated ATL/COM DLL, using actxserver: h = actxserver('....'); then invoked method. Now I wish to remove the control by delete(h). The purpose is to update the control DLL after modified VC++ code. However, the DLL cannot be replaced unless I quit MATLAB. How MATLAB can remove the control without quit MATLAB?
[EDITED, Jan, moved from answer section:]
MATLAB document and support said that delete/release should clear them up, but they don't.
  3 件のコメント
Mathew
Mathew 2016 年 11 月 15 日
Windows pops up message said "other program is using the DLL", so I cannot replace the DLL with new one, unless I quit MATLAB.
Jan
Jan 2016 年 11 月 15 日
Please post your code. "Matlab said delete/release" does not allow to recognize, what you are doing exactly.
Please add all important information by editing the question, not in comments or answers. Teh readers expect all details inside the question and collecting the parts from different sections is confusing. Thanks.

サインインしてコメントする。

回答 (2 件)

Jan
Jan 2016 年 11 月 15 日
編集済み: Jan 2016 年 11 月 15 日
Did you try
h.Quit
h.delete
clear h
?

Mathew
Mathew 2018 年 5 月 15 日
MATLAB does support Unloading an assembly; It seems same to MS COM.

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by