필터 지우기
필터 지우기

MCR issue at initialization

조회 수: 2 (최근 30일)
Bruno
Bruno 2013년 2월 7일
Dear all,
I'm developing a large modular application which uses plug-ins. I've developed a signal processing plug-in in Matlab and compile it as a C++ shared lib that I wrapped into a C++ DLL (a plugin for my application).
Everything is OK.
On the other hand, I've developed another plugin that uses mat-files libraries (mx.dll lut.dll, etc) to write some data in a Matlab file.
When the two plugins are loaded and when I launch the 'matlab' plugin, the application crashes when the MCR is initializing. I've only got an exit(1).
Matlab is R2012b, with Compiler 4.18 on Windows 7 Pro 64bit and Microsoft Visual Studio 2008 SP1
Any advice to avoid that? Thanks for any help.

답변 (1개)

Image Analyst
Image Analyst 2013년 2월 7일
  댓글 수: 1
Bruno
Bruno 2013년 2월 7일
Indeed, but I don't have a standalone MATLAB application. I've got a C++ shared library wrapped in a C++ DLL as a plug-in for my Application.
That plugin is working very well (starts MCR init and so on) when used alone. If I add an other plug-in (C++ dll) that uses mx.dll to write some matlab .mat file, it crashes.
So I suppose there is a conflict between MCR dlls and MATLAB dll used by my other plug-in.
I don't want to use MCR for my other plugin, just to write out some .mat file. I've embedded MATLAB dll in my application's directory in order to deploy my application on a target computer. It works fine and I don't need MCR installed on the target computer just for that plug-in. But for my more complex plug-in, written in Matlab and compiled with Matlab Compiler, I do need the MCR on the target computer. And there is a conflict I suspect...

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

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by