Invalid MEX-file, invalid win32 application

Hi everybody,
I'm trying to use a function which called a mexw32 library but this error appear :
"Invalid MEX-file, 'C:\Program Files\...\...\*.mexw32' n'est pas une application Win32 valide"
Is anybody already met this type of error ?
My environment is : Windows XP, Matlab 2010b.
Thanks,

Réponses (4)

James Tursa
James Tursa le 20 Jan 2012

1 vote

This message can result when a mex routine is compiled with one version of MATLAB and then used on a different version of MATLAB. The solution is generally to recompile the mex routine using the MATLAB version that you intend to run it on.
JEREMIE
JEREMIE le 23 Jan 2012

0 votes

Thanks James,
It could be this reason but it's working using the same mexw32 library on other PC with Matlab 2010b. It seems like an external problem of Matlab...
Andreas Goser
Andreas Goser le 23 Jan 2012

0 votes

It might be releated to the architecture. MEXW32 is for Windows 32 Bit. Maybe you use a Win XP for 64 Bit.
JEREMIE
JEREMIE le 23 Jan 2012

0 votes

Thanks Andreas but I'm using a Windows 32 Bit...

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Question posée :

le 20 Jan 2012

Community Treasure Hunt

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

Start Hunting!

Translated by