New feature Mex Out-of-Process

조회 수: 4 (최근 30일)
Bruno Luong
Bruno Luong 2019년 3월 27일
편집: Joseph Becker 2020년 11월 28일
In the R2019a, there is a new feature that I think it's useful for people like me(us) that uses heavily MEX in the projects.
The problem is it seems support only C++, and not C and Fortran.
My question is why and more importantly : is it in the roadmap of TMW that MATLAB will eventually supports this feature for C/fortran or TMW force users to migrate their MEX file to C++ to be able to use the external function in out-of-process manner?
  댓글 수: 5
Jan
Jan 2019년 4월 29일
@Bruno: It happens rarely, that authorities of the MathWorks staff reveal the details in the forum, especially if they concern features of future releases.
A.B.
A.B. 2020년 5월 6일
This is a highly useful needed feature in C/Fortran as well. Not all programmers code in C++. I hope MATLAB takes this issue up soon.

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

답변 (1개)

Steven Lord
Steven Lord 2020년 5월 6일
Jan is correct that generally we don't discuss whether or not something is in our future plans.
Bruno Luong, A King, if you want to request that we add C and/or Fortran support to the out-of-process MEX feature please let Technical Support know via the telephone icon in the upper-right corner of this page. Including details about how you would use this feature if it were available and what benefit you would hope / expect to gain in your enhancement request would be useful information for the developers to consider when reviewing the request. "I want feature X because it would let me do Y." can be a stronger motivator than just "I want feature X."
  댓글 수: 3
Bruno Luong
Bruno Luong 2020년 5월 9일
Debugging MEX file is not convenient if it's used the same process with MATLAB.
If user see a pointer wrongly set during a debugging, if he/she stop prematuraly the MEX, it crashes, if he/she continues it crashs. This behavior is for C/Fortran/C++. Then she/he has to start the whole thing over again.
So it nice to have this feature on ALL external language that MATLAB supports.
It's just plain odd that such feature applies only for C++.
Joseph Becker
Joseph Becker 2020년 11월 28일
편집: Joseph Becker 2020년 11월 28일
I do have >20,000 lines of legacy FORTRAN that took over a year to get sort of running in a MEX because the debugging was so insanely difficult to do without something like GDB connecting to process outside of MATLAB. I'm sort of mystified why this out-of-process for C/Fortran is difficult to add, maybe it was just an oversight but let me assure that few things are as difficult to debug as a MEX. And given Matlab crashes at the drop of a hat when the MEX FORTRAN has an issue it's just about impossible.
Hmmm, guess I'm an idiot, but I don't see "the telephone icon in the upper-right corner of this page".

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by