TWSocket.MultiThreaded

From Overbyte
Revision as of 18:59, 3 October 2006 by Sysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> ICS component reference -> TWSocket -> MultiThreaded

Definition

property MultiThreaded: Boolean;

Description

MultiThreaded Tells TWSocket that it is used within a secondary thread. You must set MultiThreaded property to true whenever you use TWSocket outside of the main thread. A common mistake is to thing MultiThreaded set to true means the component will be multithreaded. It is wrong ! It doesn't tell the component to create threads, it tells the component that it is running in a secondary thread.

If you forget to set MultiThreaded to true and your TWSocket is running in a secondary thread, then you'll have some trouble with message handling. The problem is not obvious, but you'll have troubles !

Example

Best practices

How to