public static class BaseSession.LibraryUnloadOption
This should be controlled by the "Unload Option" that you have specified. In the .net languages, you define a "GetUnloadOption" function and in that function specify which unload option to use. I have not programmed NX with Java, but I imagine the process is similar.
VB.net example code:
Public Function GetUnloadOption(ByVal dummy As String) As Integer 'Unloads the image immediately after execution within NX GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately '----Other unload options------- 'Unloads the image when the NX session terminates 'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination 'Unloads the image explicitly, via an unload dialog 'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Explicitly '------------------------------- End Function
There are a (very) few calls that prevent a function from being unloaded immediately.
Typically they are ones that register other functions/calls/callbacks.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled