William wrote:
Does anyone have any advice on a way to initialize/uninitialize com
when using the threading library?
I assume you are referring to the new System.Threading framework, correct?
It uses TThread-derived classes, and those classes happen to be declared
in the "interface" section of the System.Threading unit, so you could manually
patch the vtable of the unit's TBaseWorkerThread and/or TQueueWorkerThread
class(es) at runtime to inject your own Execute() methods into the appropriate
slots. There are third-party code/libraries floating around for hooking
Delphi class methods in this manner.
--
Remy Lebeau (TeamB)
Connect with Us