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

compileddctgeneratorMATLAB Compilerpctreportwarning

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

Best Answer

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