Keeping SolidWorks Active

Hi folks,

I'm using SolidWorks API via C# and .NET.

I'm handling SLDWORKS.exe process in background (not visible).

After computation (open a document, modify it and close it),

sometimes SLDWORKS.exe just shut down unexpectedly,

releasing allocated memory.

I can receive requests for SW engine at every moment

(cannot expect when) and I really must avoid large overhead

for SW startup.

How can I keep SW process active? Should I test it with a sort

of polling? Any option in API?

Please help, this is very important to me.

Many thanks.

SolidworksApi macros