mwArray crashing in c++ code
5 views (last 30 days)
Show older comments
Kaushik
on 16 Oct 2012
Commented: Joshua Baldwin
on 26 Sep 2017
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
0 Comments
Accepted Answer
Kaustubha Govind
on 16 Oct 2012
You probably are missing a call to mclInitializeApplication. Please follow the example from the documentation to ensure that you perform all the required steps.
More Answers (1)
Bruno
on 14 Nov 2012
Had the same problem. Anywhere I declare a mwArray objet it crashes. Even after mclInitilizeApplication.
I'd like some comments on the issue.
4 Comments
Kaustubha Govind
on 15 Nov 2012
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
on 26 Sep 2017
The documentation that you linked is no longer available on the Mathworks site.
See Also
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!