matPutVariable fails in matcreate.cpp for matlab2014b on windows 8

4 vues (au cours des 30 derniers jours)
Suganthan
Suganthan le 27 Mar 2015
Commenté : Suganthan le 1 Avr 2015
Hi,
Currently, I am having issue with running matcreate.exe which is generated by compiling matcreate.cpp provided by matlab as an example.
To create matcreate.exe, I run:
> mex('-v', '-f', [matlabroot '\bin\win64\mexopts\msvc100engmatopts.bat'], '-largeArrayDims', 'matcreat.cpp');
It compiles all fine without error or warning.
But when I run it from a console (run as administrator), it crashes right away. A popup window saying matcreate.exe has stop wroking. If I continue to debug, in my visual studio 2010, I see it comes to zlib1.dll.
> zlib1.dll!0000000062e8f16e()
> [Frames below may be incorrect and/or missing, no symbols loaded for zlib1.dll]
> zlib1.dll!0000000062e8269c()
I am working with 64bit matlab 2014b on windows 8. The visual studio is 2010 version.
Anyone knows how to fix this issue? Any opinion will be appreciated.
Thanks.
Li

Réponse acceptée

Philip Borghesani
Philip Borghesani le 30 Mar 2015
Modifié(e) : Philip Borghesani le 30 Mar 2015
First thing to do is check that your matcreate.exe is using zlib1.dll supplied with MATLAB and not one from another package. You should be able to check this with your debugger or the dependency walker program. If the application is picking up the wrong dll then you will need to fix the system path before running the application.
If this is not the problem we will need more information to help you including the full stack trace and dependency walker output.
  1 commentaire
Suganthan
Suganthan le 1 Avr 2015
Hi thank you very much. It does solve my problem. It turns out that zlib1.dll installed by another application is used instead of the one under matlab path.
Thanks again. Li

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by