New feature Mex Out-of-Process

2 ビュー (過去 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 Center および File ExchangeIntroduction 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