Internet Direct (Indy)
Home
PreviousUpNext
TIdStackWindows.Create Constructor

Constructor for the object instance.

Pascal
constructor Create; override;

Create is the constructor for the object instance, and calls the inherited constructor. 

Create uses GStarted to determine if a protocol stack instance has been created for the Indy library. When GStarted is False, the startup API for the protocol stack implementation is called. Create will raise an EIdStackInitializationFailed exception when SOCKET_ERROR is returned from the API call. On successful conmpletion of the API call, GStarted is set to True and the current protocol stack instance is assigned to GWindowsStack

GWindowsStack is freed during finalization for the Indy library. 

Exceptions 
Description 
With the message RSWinsockInitializationError
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.