Difference between revisions of "TWSocket.MultiThreaded"
Jump to navigation
Jump to search
Markus.humm (talk | contribs) (language slightly improved) |
|||
Line 7: | Line 7: | ||
== Description == | == Description == | ||
− | '''MultiThreaded''' | + | '''MultiThreaded''' tells TWSocket that it is used within a secondary thread. You must set the MultiThreaded property to true whenever you use TWSocket outside of the main thread. A common mistake is to think MultiThreaded set to true means the component will be multithreaded. This 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 ! | + | 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 == | == Example == |
Latest revision as of 10:46, 4 October 2006
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 the MultiThreaded property to true whenever you use TWSocket outside of the main thread. A common mistake is to think MultiThreaded set to true means the component will be multithreaded. This 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!