Re: GStack

Giganews Newsgroups
Subject: Re: GStack
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Tue, 13 Oct 2009

"Kent Briggs" <kbrig…@briggsoft.com> wrote in message
news:AB7C59C66E94E340kbrig…@briggsoft.com...

> How do I initialize GStack so that I have access to
> GStack.LocalAddresses in an app that has no other
> Indy components?

Use the TIdStack.IncUsage() and TIdStack.DecUsage() class methods, ie:

TIdStack.IncUsage;
try
  // use GStack as needed
finally
  TIdStack.DecUsage;
end;

--
Remy Lebeau (TeamB)

Replies

In response to

GStack posted by Kent Briggs on Tue, 13 Oct 2009