Effacer les filtres
Effacer les filtres

MCR issue at initialization

2 vues (au cours des 30 derniers jours)
Bruno
Bruno le 7 Fév 2013
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.

Réponses (1)

Image Analyst
Image Analyst le 7 Fév 2013
  1 commentaire
Bruno
Bruno le 7 Fév 2013
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...

Connectez-vous pour commenter.

Catégories

En savoir plus sur Application Deployment dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by