Printer FriendlyEmail Article Link

TTworkbench: How to handle a memory leak with jacob (ComThread) using TTworkbench?

TTworkbench 32/64 Bit, Microsoft Windows/Linux
When calling jacob/ComThread in Java port plugin implementation, the ComThread memory is not handled by Java garbage collection.

The solution is to add the following method in Java source, when starting:
ComThread.InitSTA();     // initializing the ComThread
and the following to close:
ComThread.Release();   // release the memory not handled by Java garbage collection
Thus the ComThread is released explicitly.

Product : Misc