i have code calls matlab function (displayfigure.m) c# client. each time update .m file, changes not reflected when c# program rerun.
public void callmlfunc(){ mlapp.mlapp matlab = new mlapp.mlapp(); matlab.feval("displayfigure", 0, out result, input); matlab.quit(); } tried terminate matlab.exe process using
matlab.execute("quit;"); and following unhandled exception: system.runtime.interopservices.comexception.
after force quitting program rerun again displayfigure.m (version 2) reflected. there quit matlab process?
there's matlab.exe in process list com object. there's visible window can close. there isn't. may have more 1 matlab.exe, if debugging , matlab editor open, you'll have instance running well. matlab.quit(); should terminate matlab.exe associated com object, if there exception during matlab.feval(), or breakpoint, etc., might not execute. when have problem, terminate matlab.exe highest pid.
Comments
Post a Comment