Killing a (mex) Function When It Doesn't Respond to Ctrl-C or Ctrl-Break Under WIN64
조회 수: 24(최근 30일)
표시 이전 댓글
Is there a way to kill a (mex) function running in MATLAB and which doesn't respond to Ctrl-C or CTrl-Break, other than by killing the whole MATLAB process (session)? To be concrete, assume R2014A WIN 64.
Thanks.
댓글 수: 0
채택된 답변
추가 답변(2개)
Peter Lawrence
2017년 10월 6일
편집: Walter Roberson
2017년 10월 6일
Yes, it's part of the "undocumented" matlab stuff, but at least it works, and works well.
and/or
Victor
2016년 6월 16일
Who accepted that unacceptable answer!?
No but seriously this is sooooooooooooooooooooooooooooooooooooooooo annoying!
댓글 수: 4
Pavel Holoborodko
2020년 1월 23일
@"Plus, it is not clear to me what would happen in that 2nd link if the MATLAB Memory Manager was interrupted in the middle of something when its Worker Thread got terminated."
Suggestions to the situation are provided in the post. In short, WorkerThread must be used for computations, not for memory allocations (especially not by MATLAB Memory Manager functions). It is really bad idea to mix allocations & computations in (any) numerical code anyway.
참고 항목
범주
Find more on Matrix Indexing 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!