RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRemotableTypeRegistry.Lock Method

Prevents other threads from accessing the type registry.

Pascal
procedure Lock; virtual;
C++
virtual __fastcall Lock();

Lock uses a critical section to prevent simultaneous use of the type registry by multiple threads in the same application. Once one thread has called Lock to obtain access to the type registry, no other thread can return from the Lock method until the first thread has called the UnLock method to release its lock. 

Lock is called automatically by the methods of TRemotableTypeRegistry

 

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