Threading in C6

Top  Previous  Next

BBTT is thread safe by using a critical section to protect the nonthreaded global values used in the tray icon.

 

The critical section is named BBTTLock.  Its methods are :

 

BBTTLock.Wait()

BBTTLock.Release()

 

Remember to add them to your hand coding to preserve this protection.

 

You can use Post to post the Balloon Tip to the Frame, as that is also thread safe.

Here is an example of changing the message, and posting to the frame in a multi-dll

threaded environment.

 

 

Threadsafe