To MrPonny -
A Tool menu performs the following actions:
Opens the sequence file
Runs the sequence in a new hidden execution
Releases the execution
Releases the sequence file
Because the unload options say to "Unload when Sequence File is Closed" the engine releases its LoadLibrary handle to the DLL for the step that you are interested in. You need to find a way to unsure that the DLL stays loaded in memory after the sequence file is unloaded.
The simplest way would be to add a reference to the DLL by calling "LoadLibrary" on the DLL and let the DLL be "unloaded" when the process exits. If you wanted more control over the DLL, you could store the handle returned by LoadLibrary in a numeric variable that you create on the container property object return from Engine.TemporaryGlobals. This way you could have a tool menu or some other way to call FreeLibrary using the handle at a designated time.
Scott Richardson
https://testeract.com