Why does my GUI application, generated with the MATLAB Compiler, cause my computer to crash?

2 views (last 30 days)
Why does my GUI application, generated with the MATLAB Compiler, cause my computer to crash?
I have a MATLAB graphic program that compiles successfully, but there is a problem in the generated code.
The following steps reproduce this problem:
1. Compile resolution.m with the following command:
mcc -B sgl resolution
2. Run 'resolution.exe'
3. Press the "Run resoluton" button and chose one of the *.tif files.
3. Wait for the program to end. (a few minutes)
4. Open Task Manager and go to Processes Tab.
5. The CPU column should indicate 00 (which is understandable, since nothing is happening yet)
6. Move the mouse rapidly over the open figure, and notice the CPU utilization -- it goes up to 90-97.
This behavior appears only when running the compiled *.exe file. Repeating the aforementioned steps indicates no problem at all.
This situation is just a symptom of a bigger problem which happens when the program analyzes lots of images in a row. Each iteration takes more and more CPU time.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This has been verified as a bug in MATLAB Compiler 3.0 (R13) applications.
There are currently no known workarounds.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!