You need to make sure that the IPRO COM component-based engine is released properly before restarting it in the .NET framework.


Use the following code snippet as a template:
Note: The example code snippet is in VB.NET, but can be used for any .NET language platform with some modifications. The modifications do not affect the .NET framework calls like GC.Collect() and GC.WaitForPendingFinalizers().
Dim IPROEngine As IPRO.Engine 'Declare object variable
IPROEngine = New IPRO.Engine 'Create a new IPRO.Engine object

... 'Your code comes here

IPROEngine = Nothing 'Dispose the ENGine object
GC.Collect() 'Explicitly call the Garbage Collector
GC.WaitForPendingFinalizers() 'Block program until the ENGine disposal is complete
IPROEngine = New IPRO.Engine 'Create a new IPRO.Engine object
For more information, see PRB: The Garbage Collector Does Not Release a COM Object That Handles Events as You Expect (Microsoft).

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016