Why do I receive warnings about certain classes being in use upon termination of an application compiled with MATLAB Compiler 4.5 (R2006b)?

1 view (last 30 days)
Using MATLAB Compiler 4.5 (R2006b), I have compiled a MATLAB file which uses objects and I receive the following warnings. Note the warnings are specific for the Report Generator 3.1 (R2006b), but the same issue may be seen with other toolboxes. When my application terminates, I receive many warnings about classes being in use. For example:
Warning: Class
'rptgen.prop'
in use 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
'rptgen.enum'
in use 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.
<SNIP...>
Warning: Objects of rptgen.prop class exist - not clearing this class
or any of its super-classes
Warning: Objects of rptgen.enum class exist - not clearing this class
or any of its super-classes
Warning: Objects of rptgen.rpt_all class exist - not clearing this class
or any of its super-classes
Warning: Objects of rptgen.appdata class exist - not clearing this class
or any of its super-classes
Warning: Objects of rptgen.appdata_rg class exist - not clearing this class
or any of its super-classes
Warning: Objects of rptgen_hg.appdata_hg class exist - not clearing this class
or any of its super-classes

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Jan 2010
These are spurious warnings generated by applications which use objects and are compiled with MATLAB Compiler. These warnings are benign and can be ignored.
To work around this issue, disable the warnings by including the following commands in the compiled MATLAB file:
warning off MCR:ClassInUseAtExit
warning off MATLAB:ClassInstanceExists

More Answers (0)

Categories

Find more on Construct and Work with Object Arrays in Help Center and File Exchange

Products


Release

R2006b

Community Treasure Hunt

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

Start Hunting!