Stand Alone exe created on 32 bit machine but for use on 64 bit machine.

Not 100% that this is in fact the problem, but I think its a good chance. I created a stand alone exe on an XP machine (32 bit), but the target machine is a Windows 7 one (64 bit) without MatLab. When I install on the 7 machine with the MCRInstaller and then try to access the application I created I get a failure with no specific error messages as the Command window closes immediately.
Any thoughts would be greatly appreciated.

Answers (3)

Could you try running the executable from a command window, instead of simply double-clicking on the icon? Running it manually from a prompt will display the error on the command window. That should help us diagnose the issue better. (Btw, you should be able to run a 32-bit Windows compiled application on 64-bit Windows)

10 Comments

Tried that, thanks...the error says:
MATLAB: Load:couldNotReadFile
Warning: 1 invisible figure(s) exist at MCR termination.
If your application has terminated unexpectedly, please note that applications generated by the MATLAB Compiler terminate when there are no visible figure windows. See the documentation for WaitForFiguresToDie and WAITFORCALLBACKS for more information.
Warning: Class
'uitools.uimodemanager'
in use at MCR termination.
...
...
...
Any thoughts?
Thanks
JC
I am also trying to run a mexw32 on a 64-bit windows. However the error message shows
Undefined function 'geometryMatrix' for input arguments of type 'double'.
I tried to recompile it on 64-bit Matlab but the program crashed. Now I'm checking every line to see what caused the crash but the program is so unstable that it works a few times and doesn't work anymore even if the c code stays the same. What exactly do we need to do to update a 32-bit program to a 64-bit program?
Jane: It seems like yours is a different issue. Could you create a new question for this please?
Jordan: Are you trying to load a MAT-file in your code by any chance? If yes, have you added to the CTF archive by adding it under "Additional/Other Files" in deploytool (or use the -a option if using mcc)?
Also, do you have any figure windows that your application opens up?
Kaustubha...
I do have the CTF archive embedded.
The exe is meant to open a GUI that I created in GUIDE. Could that be a problem?
I deploy apps created using GUIDE all the time so that, in itself, is not a problem. Forget about 64 for the moment. If you deploy your app to a 32 bit computer, other than your own, does it run on that 32 bit computer? You'll need to compile on your 32 bit version of MATLAB and re-run msetup to do this if you had been running 64 bit MATLAB. Actually I'm not even sure that is possible - to run 64 bit MATLAB on a 32 bit computer - so you may not have to re-run msetup. When you said "for use on a 64 bit computer" were you compiling under 64 bit MATLAB or 32 bit MATLAB?
Or even one step earlier: did you try to run the executable on your XP machine and does it run there?
@Titus - Yes, I was been able to run the application on my XP machine.
@Image - I am compiling under a 32-bit Matlab.
OK forget about YOUR XP machine. Compiled apps will often run on your machine (the one you compiled the app on) but not on end user's machines, so that reveals nothing surprising. Does your app run on an end user's XP machine that is a physically separate machine that yours?

Sign in to comment.

You will need to install the MCR based on the compiler so for example, if the compiler is R2007a 32Bit, then you need the same MCR.

1 Comment

OK, now we're getting somewhere. You say in your comment to me in Kaustubha's answer that you can't even get your program to run as a 32 bit app on a 32 bit computer (that's not your own) running 32 bit Windows XP. (I hope this is what you tried because obviously a 64 bit app won't work on 32 bit XP.) So now it's not a 32 bit/64 bit issue, it's just an issue of getting your app to run at all on a different computer. Please look over the list of 7 things to try when you app doesn't run in the FAQ, that I mentioned above, and let me know if all of those are OK and it still doesn't run. I compile stuff all the time and have seen lots of weird things so I might be able to help.

Sign in to comment.

Categories

Products

Asked:

on 20 Mar 2012

Community Treasure Hunt

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

Start Hunting!