RemoveSandboxOnExit
Previous  Top  Next


Sub RemoveSandboxOnExit(YesNo)

This function set toggles weither to delete the sandbox when the last child process exits.

If you set the package.ini option RemoveSandboxOnExit=1, the default clean up for the package with be "Yes". In this case you, can change the clean up to "No" by calling RemoveSandboxOnExit with the value of 0. If you did not modify the package.ini option RemoveSandboxOnExit=1, the default clean up for the package with be "No". In this case you, can change the clean up to "Yes" by calling RemoveSandboxOnExit with the value of 1.

Parameters:

YesNo  
[in] Do you want to clean up when the last process shuts down? 1=Yes, 0=No  

Example:
 
' This will turn on cleanup 
RemoveSandboxOnExit 1  
 
' This will turn off cleanup 
RemoveSandboxOnExit 0