フィルターのクリア

mwArray crashing in c++ code

4 ビュー (過去 30 日間)
Kaushik
Kaushik 2012 年 10 月 16 日
コメント済み: Joshua Baldwin 2017 年 9 月 26 日
hi,
i have complied a matlab function to c++ function using mcc.
the resulting c++ function needs mwArray's as input.
in my c++ code when i specify
mwArray output_results(1,1,mxDOUBLE_CLASS);
the code crashes. Anywhere I try to define a mwArray the code crashes.
What should i do to resolve this.
thanks in advance

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 10 月 16 日
You probably are missing a call to mclInitializeApplication. Please follow the example from the documentation to ensure that you perform all the required steps.
  1 件のコメント
Joshua Baldwin
Joshua Baldwin 2017 年 9 月 26 日
That webpage no longer exists.

サインインしてコメントする。

その他の回答 (1 件)

Bruno
Bruno 2012 年 11 月 14 日
Had the same problem. Anywhere I declare a mwArray objet it crashes. Even after mclInitilizeApplication.
I'd like some comments on the issue.
  4 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 11 月 15 日
Hmm.. I haven't used MATLAB Compiler in a while, so I might be missing something. Could you perhaps try the example in the documentation and see if that works? If it does, perhaps you should try to emulate the example more closely to see if that works better.
Joshua Baldwin
Joshua Baldwin 2017 年 9 月 26 日
The documentation that you linked is no longer available on the Mathworks site.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeploy to C++ Applications Using mwArray API (C++03) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by