mclTerminateApplication - Closes down all MCR-internal application state. Called only once per process.
Synopsis
bool mclTerminateApplication(void)
Description
Call this function once at the end of your program to close
down all MCR-internal application state. After you have called this
function, you cannot call any further MATLAB Compiler-generated
functions or any functions in any MATLAB library.
Caution
mclTerminateApplication must be called once
only per process. Calling mclTerminateApplication more
than once may cause your application to exhibit unpredictable or undesirable
behavior. |
Example
At the start of your program, call mclInitializeApplication to
ensure your library was properly initialized:
mclInitializeApplication(NULL,0);
if (!libmatrixInitialize()){
fprintf(stderr,"could not initialize the library
properly\n");
return -1;
}At your program's exit point, call mclTerminateApplication to
properly shut the application down:
mxDestroyArray(in1); in1=0;
mxDestroyArray(in2); in2 = 0;
mclTerminateApplication();
return 0;
See Also
Initializing and Terminating Your Application with mclInitializeApplication
and mclTerminateApplication
mclInitializeApplication
 | mclSetMCRUserData | | mclWaitForFiguresToDie |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit