RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientSocketThread.ExecuteSyncProc Method

Synchronizes data between threads.

Pascal
procedure ExecuteSyncProc;
C++
__fastcall ExecuteSyncProc();

Objects in the client socket thread should not directly manipulate data in the main thread. Attempting to do so will cause synchronization problems and, most likely, the application will crash. To avoid synchronization errors, override the SyncProc method to include instructions that must be executed by the main thread. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!