Quote Originally Posted by The trick View Post
Hello Schmidt! Thanks for cool code! it supported events?
No - the Demo above does not support "Classic VB-Events" currently (the higher-level
Threading-Support of the vbRichClient5.dll would allow for that though).

But the Demo as it currently is, supports "shared state" (over the shared Memory-Area,
behind the VB-Array TI() - which both sides have access to).

So, "Event-like reactions to State-Changes" can be implemented quite easily...
And the Demo does so already, by reporting in the Main-Form the state-changes
on the FPS-Member of the shared Mem-area - and in the opposite direction,
by reacting within the Threads to a state-change in the CancelThread-member
when it was set in the Main-Thread.

Olaf