Why does my Windows Service which is using a MATLAB Compiler 4.6 (R2007a) generated DLL, terminate with Error 7034 in the Windows Event Manager?

I have created a Windows Service using a MATLAB Compiler DLL. The service starts and runs file until I logout of the system. I can then see in the Windows Event Manager that the service has exited with Error 7034.

 Accepted Answer

The following information is not yet available in the documentation of MATLAB Compiler 4.6 (R2007a) but is available in the latest online documentation (<http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/br2jauc-53.html>):
To ensure stable performance when a MATLAB Compiler generated DLL is used in a Windows Service:
1. Create a file named java.opts.
2. Add the following line to the file:
-Xrs
3. Save the file to: $MCRROOT/$VERSION/bin/win32, where $MCRROOT is the installation directory of the MATLAB Compiler Runtime and $VERSION is the MCR version (for example, v76 for MATLAB Compiler 4.6 (R2007a)).
Failure to create the java.opts file using these steps may result in unpredictable results such as premature termination of Windows services.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Release

R2007a

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!