matlab GUI - Stand-alone app CRASH

matlab GUI - Stand-alone app CRASH

Post by su Zha » Fri, 07 Jan 2011 21:02:04


i,
I have a fairly simple GUI, created using GUIDE, which has a few edit
text boxes, three popup menus some buttons and two axes for plotting. Some of the
callbacks reference separate .m functions.
I don't have any mex files at all, just the main fig and associated m file, and another m file that is called as the callback from the timer function. In Matlab R14SP2 it works just fine, but when compiled (doesn't matter which compiler) it will crash fairly reliably.

when i use mcc -mv prg.m and compile the programe and launch it, i get a unknown crash(from the timer i think). The exe looks okay but when a push the START button(the one with the timer) BOOM!

Please tell me any ideeas you may have,..it's a hard bug to track down!!!!!!!
Thanks!

oh,and i get this log file:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x79D272AF
Function=[Unknown.]
Library=D:\MCR\jmi_mi.dll

NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.


Current Java thread:
at com.mathworks.jmi.NativeMatlab.nativeRetrieveMCRPointer(Native Method)
at com.mathworks.jmi.NativeMatlab.retrieveMCRPointer(NativeMatlab.java:139)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:236)

Dynamic libraries:
0x00400000 - 0x00405000 D:\MCR\matlab_serial.exe
0x7C920000 - 0x7C9B4000 D:\WINDOWS\system32\ntdll.dll
0x7C800000 - 0x7C91D000 D:\WINDOWS\system32\kernel32.dll
0x10000000 - 0x1001C000 D:\MATLAB7\bin\win32\mclmcrrt70.dll
0x7C340000 - 0x7C396000 D:\WINDOWS\system32\MSVCR71.dll
0x7C3A0000 - 0x7C41B000 D:\WINDOWS\system32\MSVCP71.dll
0x77D10000 - 0x77D9F000 D:\WINDOWS\system32\USER32.DLL
0x77EF0000 - 0x77F38000 D:\WINDOWS\system32\GDI32.dll
0x73D00000 - 0x73D27000 D:\WINDOWS\system32\CRTDLL.DLL
0x76300000 - 0x7631D000 D:\WINDOWS\system32\IMM32.DLL
0x77DA0000 - 0x77E49000 D:\WINDOWS\system32\ADVAPI32.dll
0x77E50000 - 0x77EE1000 D:\WINDOWS\system32\RPCRT4.dll
0x62C20000 - 0x62C29000 D:\WINDOWS\system32\LPK.DLL
0x73FA0000 - 0x7400B000 D:\WINDOWS\system32\USP10.dll
0x77BE0000 - 0x77C38000 D:\WINDOWS\system32\msvcrt.dll
0x6D020000 - 0x6D035000 D:\PROGRA~1\KASPER~1\KASPER~1\adialhk.dll
0x77F40000 - 0x77FB6000 D:\WINDOWS\system32\SHLWAPI.dll
0x6D4C0000 - 0x6D4C6000 D:\PROGRA~1\KASPER~1\KASPER~1\kloehk.dll
0x78700000 - 0x78788000 D:\MATLAB7\bin\win32\libut.dll
0x76C60000 - 0x76C88000 D:\WINDOWS\system32\imagehlp.dll
0x78500000 - 0x78576000 D:\MATLAB7\bin\win32\icuuc24.dll
0x78430000 - 0x78435000 D:\MATLAB7\bin\win32\icudt24l.dll
0x78440000 - 0x784C2000 D:\MATLAB7\bin\win32\icuin24.dll
0x784D0000 - 0x784DD000 D:\MATLAB7\bin\win32\icuio24.dll
0x76990000 - 0x76ACD000 D:\WINDOWS\system32\ole32.dll
0x770F0000 - 0x7717C000 D:\WINDOWS\system32\OLEAUT32.dll
0x78790000 - 0x787C5000 D:\MATLAB7\bin\win32\libmx.dll
0x786E0000 - 0x786F2000 D:\MATLAB7\bin\win32\libz.dll
0x787E0000 - 0x787E9000 D:\MATLAB7\bin\win32\libmat.dll
0x01620000 - 0x01651000 D:\MATLAB7\bin\win32\mclmcr.dll
0x792F0000 - 0x7938E000 D:\MATLAB7\bin\win32\mcr.dll
0x76320000 - 0x76367000 D:\WINDOWS\system32\comdlg32.dll
0x5D170000 - 0x5D207000 D:\WINDOWS\system32\COMCTL32.dll
0x7D590000 - 0x7DD83000 D:\WINDOWS\system32\SHELL32.dll
0x78800000 - 0x78815000 D:\MATLAB7\bin\win32\mpath.dll
0x79AC0000 -
 
 
 

1. Can Matlab 6.5 automatically convert GUI-based Matlab program to stand-alone applications?

2. Deploying a stand-alone GUI to an end user without matlab installed

High everyone,
I am using MATLAB R2007b. I am in the process of porting my GUI to an end user stand alone application. As per the manual, under the chapter deployment chapter, the required software to port the GUI have been listed on a table, amongst which are matrixdriver.exe, libmatrix.ctf, and libmatrix.dll. Notice in the last software that I am using a windows platform. Now I have successfully generated the libmatirx.ctf and libmatrix.dll files. The command for generating these two matrices in the manual is mcc -W cpplib:libmatrixp -T link:lib for a machine with a C++ compiler. Unfortunately, my machine only has the C compiler so I used the following command to get my files: mcc -W lib:libmatrixp -T link:lib. So far so good.
Now I am in the process of generating the matrixdriver.exe file but the example given in the manual for generating this driver file is matrixdriver.cpp which is written completely in C++ and I have no clue of C++. I also have no clue of C programing. Given that I am completely blank in these two programing languages, how can I go about to generate the matrixdriver.exe file? Note that I can not use the matrixdriver.cpp file in the manual because it is written in C++ while my computer only has a C compiler. Once again thanks for your help.
Neba

3. How to make GUI stand-alone in matlab 7.0 version

4. JVM crashes when calling matlab in stand alone run app.

5. could Ruby be used to make a stand-alone cross-platform GUI app?

6. Is the stand-alone player TRULY stand ALONE?

7. Matlab GUI application-> stand alone program

8. I need help in GUI stand alone Matlab file

9. Compile GUI stand- alone application in Matlab 7

10. Stand alone application with Matlab GUI

11. How to make stand alone GUI file in Matlab 7.0

12. Packaging stand alone compilation of Matlab+Mex+GUI , Runtime

13. Packaging stand alone compilation of Matlab+Mex+GUI , Runtime problem

14. Convert Matlab Gui to stand alone program

15. Can MAYA C++ stand-alone API with GUI run without MAYA launched?