Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB Compiler   

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.

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS