Skip to Main Content Skip to Search
Product Documentation

Using MATLAB Compiler Generated DLLs in Windows Services

If you have a Windows service that is built using DLL files generated by MATLAB Compiler, do the following to ensure stable performance:

  1. Create a file named java.opts.

  2. Add the following line to the file:

    -Xrs
    
  3. Save the file to: MCRROOT/version/runtime/win32|win64, where MCRROOT is the installation folder of the MATLAB Compiler Runtime and version is the MCR version (for example, v74 for MATLAB Compiler 4.4 (R2006a)).

  


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