"Marco Digiacomo" <manduriomane@mathworks.com> wrote in message
news:fohbjv$265$1@fred.mathworks.com...
> Hello
>
> I have a problem with matlab 2007b.
>
> When I try to execute a function that use a DLL file, this
> error message appears:
>
> ??? Invalid MEX-file 'C:\mytoolbox\my2text.dll':
> C:\mytoolbox\my2text.dll is not a valid Win32 application.
>
> This error wasn't appear with Matlab 7.0
>
> What's the problem?
"Marco Digiacomo" <manduriomane@mathworks.com> wrote in
message <foibc5$p9e$1@fred.mathworks.com>...
> Hi Gadi
>
> on my PC I have installed both version of Matlab: 7.0 and
> 7.5.
>
> When I use the DLL file with Matlab 7.0 the function that
> use this library is performed correctly.
>
> Intstead, when I use this library with Matlab 7.5, the
> error message appears.
I have experienced a similar problem. Hopefully someone
knows how to resolve this issue.
"Marco Digiacomo" <manduriomane@mathworks.com> wrote in
message <foibc5$p9e$1@fred.mathworks.com>...
> Hi Gadi
>
> on my PC I have installed both version of Matlab: 7.0 and
> 7.5.
>
> When I use the DLL file with Matlab 7.0 the function that
> use this library is performed correctly.
>
> Intstead, when I use this library with Matlab 7.5, the
> error message appears.
I have experienced a similar problem. Hopefully someone
knows how to resolve this issue.
As a note, we try our best to maintain binary compatibility of MEX-files for
several releases. Unfortunately, this is not always possible. We recommend
that you rebuild your MEX-files for every new release of MATLAB to ensure
that they will continue working.
Gadi
"Marco Digiacomo" <manduriomane@mathworks.com> wrote in message
news:foibc5$p9e$1@fred.mathworks.com...
> Hi Gadi
>
> on my PC I have installed both version of Matlab: 7.0 and
> 7.5.
>
> When I use the DLL file with Matlab 7.0 the function that
> use this library is performed correctly.
>
> Intstead, when I use this library with Matlab 7.5, the
> error message appears.
Have you tried to rebuild the C code in matlab?
mex your_c_file.c
> "Marco Digiacomo" <manduriomane@mathworks.com> wrote in message
> news:foibc5$p9e$1@fred.mathworks.com...
> > Hi Gadi
> >
> > on my PC I have installed both version of Matlab: 7.0 and
> > 7.5.
> >
> > When I use the DLL file with Matlab 7.0 the function that
> > use this library is performed correctly.
> >
> > Intstead, when I use this library with Matlab 7.5, the
> > error message appears.
>
>
"Gadi Reinhorn" <greinhor@mathworks.com> wrote in message <fu59r8$3kq$1@fred.mathworks.com>...
> Marco and Scott,
>
> Can you report what results you have found from your use of the dependency
> walker?
>
> There are many reasons this may have happened. We publish some that we know
> about in our release notes:
> http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bq80uxu-1.html
> You might have to look through the all releases we have had between 7.0 and
> 7.5 to find the reason.
>
> As a note, we try our best to maintain binary compatibility of MEX-files for
> several releases. Unfortunately, this is not always possible. We recommend
> that you rebuild your MEX-files for every new release of MATLAB to ensure
> that they will continue working.
>
> Gadi
Gadi,
As another note and if you forgive my rudeness I find that recommendation totally unaceptable. TMW should try harder to maintain mex compatibility. You see, when we share mexs between users it's just crazy the idea that one should create as many mex as Matlab versions (2 per year now) so that one of them is the right one to a particular user.
I am not sure if this applies to this situation or not, but a couple versions ago Matlab changed the mex-file extension from .dll to .mexw32. Simply changing the extension might not work. You will probably have to recompile.
Tags for this Thread
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.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Disclaimer prior to use.