Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPSession.Lock Method

Provides resource protection for Session properties and methods.

Pascal
procedure Lock;

Lock is a procedure used to enable resource protection for the properties and methods of the HTTP session in a multi-threaded application. 

Lock uses the internal TIdCriticalSection instance allocated in the Create method, and freed in Destroy

Use Unlock to disable resource protection for the HTTP session.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.