KernelDestroyCode


Mathematica code to run during kernel shutdown

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

A sample setting is shown below.

<KernelDestroyCode>
MyApplication`ShutdownConnection[]
</KernelDestroyCode>
New to Mathematica? Find your learning path »
Have a question? Ask support »