Thread Subject: Mex32w error

Subject: Mex32w error

From: Matthew Wade

Date: 5 Dec, 2007 19:52:46

Message: 1 of 3

Hi,

I am running a Simulink model developed by a colleague (Im
in Germany, he is in Spain, so it is difficult to
troubleshoot over email).

A previous version of the model worked fine, he changed a
few entries in an Excel file where the parameters are
stored, now the updated model does not work. This only
applies to my system - his works fine.

The error message I get is:

??? Invalid MEX-file 'C:\Programme\MATLAB71
\work\agrobiogas\gui\agrobiogas_model\reactor.mexw32': Die
angegebene Prozedur wurde nicht gefunden.

.

??? Invalid MEX-file 'C:\Programme\MATLAB71
\work\agrobiogas\gui\agrobiogas_model\reactor2.mexw32': Die
angegebene Prozedur wurde nicht gefunden.

.

??? Error using ==> sim
--> Error while obtaining sizes from MEX S-
function 'reactor' in 'anaerobio_2R/S-Function'. MATLAB
error message:
Invalid MEX-file 'C:\Programme\MATLAB71
\work\agrobiogas\gui\agrobiogas_model\reactor.mexw32': Die
angegebene Prozedur wurde nicht gefunden.

That bit in german is "module is not found".

I have tried many things like using the Simulink debugger
and reusing the old model. But even with the old model I
now get the error - which I did not get before. Very
strange.

Any ideas!!

Thanks
Matt

Subject: Mex32w error

From: Matthew Wade

Date: 6 Dec, 2007 10:27:54

Message: 2 of 3

I used Dependency Walker which told me that two dlls
(dwmapi.dll and efsadu.dll) were not found, so I installed
them and the new error message from DW is:

due to a missing export function in an implicitly dependent
module

This relates to the funcion:

mxCreateDoubleMatrix_700

As the code was compiled on another person's computer
(possibly running a different version of Matlab), could
this then be the problem!

Ideas please...

Thanks

Matt






"Matthew Wade" <cosmicspacepig@googlemail.com> wrote in
message <fj6vie$d4$1@fred.mathworks.com>...
> Hi,
>
> I am running a Simulink model developed by a colleague
(Im
> in Germany, he is in Spain, so it is difficult to
> troubleshoot over email).
>
> A previous version of the model worked fine, he changed a
> few entries in an Excel file where the parameters are
> stored, now the updated model does not work. This only
> applies to my system - his works fine.
>
> The error message I get is:
>
> ??? Invalid MEX-file 'C:\Programme\MATLAB71
> \work\agrobiogas\gui\agrobiogas_model\reactor.mexw32':
Die
> angegebene Prozedur wurde nicht gefunden.
>
> .
>
> ??? Invalid MEX-file 'C:\Programme\MATLAB71
> \work\agrobiogas\gui\agrobiogas_model\reactor2.mexw32':
Die
> angegebene Prozedur wurde nicht gefunden.
>
> .
>
> ??? Error using ==> sim
> --> Error while obtaining sizes from MEX S-
> function 'reactor' in 'anaerobio_2R/S-Function'. MATLAB
> error message:
> Invalid MEX-file 'C:\Programme\MATLAB71
> \work\agrobiogas\gui\agrobiogas_model\reactor.mexw32':
Die
> angegebene Prozedur wurde nicht gefunden.
>
> That bit in german is "module is not found".
>
> I have tried many things like using the Simulink debugger
> and reusing the old model. But even with the old model I
> now get the error - which I did not get before. Very
> strange.
>
> Any ideas!!
>
> Thanks
> Matt
>

Subject: Mex32w error

From: Markus

Date: 13 Dec, 2007 15:45:13

Message: 3 of 3

"Matthew Wade" <cosmicspacepig@googlemail.com> wrote in
message <fj8ira$3o1$1@fred.mathworks.com>...
> I used Dependency Walker which told me that two dlls
> (dwmapi.dll and efsadu.dll) were not found, so I installed
> them and the new error message from DW is:
>
> due to a missing export function in an implicitly dependent
> module
>
> This relates to the funcion:
>
> mxCreateDoubleMatrix_700
>
> As the code was compiled on another person's computer
> (possibly running a different version of Matlab), could
> this then be the problem!
>
> Ideas please...
>
> Thanks
>
> Matt
>
>
>
>
>
>
> "Matthew Wade" <cosmicspacepig@googlemail.com> wrote in
> message <fj6vie$d4$1@fred.mathworks.com>...
> > Hi,
> >
> > I am running a Simulink model developed by a colleague
> (Im
> > in Germany, he is in Spain, so it is difficult to
> > troubleshoot over email).
> >
> > A previous version of the model worked fine, he changed a
> > few entries in an Excel file where the parameters are
> > stored, now the updated model does not work. This only
> > applies to my system - his works fine.
> >
> > The error message I get is:
> >
> > ??? Invalid MEX-file 'C:\Programme\MATLAB71
> > \work\agrobiogas\gui\agrobiogas_model\reactor.mexw32':
> Die
> > angegebene Prozedur wurde nicht gefunden.
> >
> > .
> >
> > ??? Invalid MEX-file 'C:\Programme\MATLAB71
> > \work\agrobiogas\gui\agrobiogas_model\reactor2.mexw32':
> Die
> > angegebene Prozedur wurde nicht gefunden.
> >
> > .
> >
> > ??? Error using ==> sim
> > --> Error while obtaining sizes from MEX S-
> > function 'reactor' in 'anaerobio_2R/S-Function'. MATLAB
> > error message:
> > Invalid MEX-file 'C:\Programme\MATLAB71
> > \work\agrobiogas\gui\agrobiogas_model\reactor.mexw32':
> Die
> > angegebene Prozedur wurde nicht gefunden.
> >
> > That bit in german is "module is not found".
> >
> > I have tried many things like using the Simulink debugger
> > and reusing the old model. But even with the old model I
> > now get the error - which I did not get before. Very
> > strange.
> >
> > Any ideas!!
> >
> > Thanks
> > Matt
> >
>
I get the exact same error message, when I try to load a
mexw32 file with LoadLibrary in VC++. For legacy reasons I
have a 2006a version on my computer, and loading a mexw32
file created with 2006a works fine. Seems to me there is an
issue in 2007b.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mex32w Matthew Wade 5 Dec, 2007 14:55:25
mex Matthew Wade 5 Dec, 2007 14:55:25
simulink Matthew Wade 5 Dec, 2007 14:55:25
rssFeed for this Thread

Contact us at files@mathworks.com