필터 지우기
필터 지우기

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 CenterFile Exchange에서 Deploy 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