[fpc-pascal] Re: Indy example returns Runtime Error (211)

Frank Church vfclists at gmail.com
Tue Nov 22 01:59:24 CET 2011


On 20 November 2011 16:57, Frank Church <vfclists at gmail.com> wrote:

> I am trying to use an Indy example from stackoverflow -
> http://stackoverflow.com/questions/576538/delphi-how-to-get-all-local-ipsand I always get Runtime Error (211). It is more of a language issue than a
> network related question, which is why I am reposting it here.
>
> Is it due to some difference between Delphi and Free Pascal
>
>
>  idStack := TIdStack.Create;
>>   TIdStack.IncUsage;
>>   try
>>     network := idStack.LocalAddress;
>>     mmoResults01.Lines.Assign(idStack.LocalAddresses);
>>     //PrintLines(idStrings);
>>   finally
>>
>>     TIdStack.DecUsage;
>>   end;
>>   FreeAndNil(idstack);
>>
>>
> Any ideas?
>
>
Any updates? I don't know if I have to subclass or derive something to
avoid this error. I will post some sample code for testing.

> --
> Frank Church
>
> =======================
> http://devblog.brahmancreations.com
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111122/f7e3061f/attachment.html>


More information about the fpc-pascal mailing list