필터 지우기
필터 지우기

Cancel task on MCR DLL (.Net library) from C#

조회 수: 3 (최근 30일)
amit lipman
amit lipman 2015년 10월 11일
댓글: amit lipman 2015년 10월 12일
Hi,
I'm trying to stop MCR DLL (.Net library) function call, running some task, from C#. Aborting the thread which runs the MCR function call is not enough, It seems that the MCR opens a thread of its own, which I don't know how to stop. In Matlab when I want to cancel the run, I press ctrl + c. is there a way to cancel MCR DLL run from C#??
Thanks, Amit

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 11일
control-C does not terminate function calls immediately. When there are compute-intensive calls, MATLAB calls BLAS or LinPack or MLK or similar routines, and as long as those are running there is no control other than to find the thread process and kill it. You can send an interrupt signal (signal 2 in Unix type systems) to the process that called into MCR and MCR will deal with it as soon as it is able.
  댓글 수: 4
Walter Roberson
Walter Roberson 2015년 10월 11일
SIGINT
You can search for information about SIGINT on msdn (my link is blocked by the spam filters here :( )
amit lipman
amit lipman 2015년 10월 12일
I'll do that, thanks you very much Walter!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by