Skip to Main Content Skip to Search
Product Documentation

mclInitializeApplication - Set up application state shared by all (future) MCR instances created in current process

Synopsis

bool 
  mclInitializeApplication(const char **options, int count)

Description

MATLAB Compiler-generated standalone executables contain auto-generated code to call this function; users of shared libraries must call this function manually. Call only once per process. The function takes an array of strings (possibly of zero length) and a count containing the size of the string array. The string array may contain the following MATLAB command line switches, which have the same meaning as they do when used in MATLAB. :

Examples

To start all MCRs in a given process with the -nodisplay option, for example, use the following code:

const char *args[] = { "-nodisplay" }; 
if (! mclInitializeApplication(args, 1))
{
   fprintf(stderr, 
           "An error occurred while initializing: \n %s ",
           mclGetLastErrorMessage());
   return -1;  
}

See Also

mclTerminateApplication

How To

  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS