Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

KernelDestroyCode


Mathematica code to run during kernel shutdown
  • KernelDestroyCode is a configuration setting giving Mathematica code that runs when a kernel is being shutdown by the server. Note that this code is not run if the kernel is shut down due to an exception, such as a timeout or a memory limit.
A sample setting is shown below.
A sample setting is shown below.
<KernelDestroyCode>
MyApplication`ShutdownConnection[]
</KernelDestroyCode>
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team