Use the IDisposable pattern with dtSearch Engine API objects to prevent memory depletion.
Remarks
The IDisposable pattern is used to ensure that unmanaged resources are freed quickly when no longer needed. Otherwise, the .NET garbage collector may take a long time to free memory used by potentially large objects such as SearchResults, resulting in memory depletion in long-running applications. In C# code, use a "using" clause with dtSearch Engine API objects, and in other code call Dispose() when you are done with an object.