Topic Path: Symbol Reference > Classes > TIdStackWindows Class > TIdStackWindows Methods > Create Constructor
TIdStackWindows.Create Constructor

Constructor for the object instance.

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. 

With the message RSWinsockInitializationError
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.