Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: IdMappedPortTCP Error. Help with Debug Code please

www.cryer.info
Managed Newsgroup Archive

Re: IdMappedPortTCP Error. Help with Debug Code please

Subject:Re: IdMappedPortTCP Error. Help with Debug Code please
Posted by:"Danny Kellett" (dkelle..@gotadsl.co.uk)
Date:Thu, 27 Apr 2006 10:30:59

Thanks Gambit.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:444ff3e1@newsgroups.borland.com...
>
> "Danny Kellett" <dkellett@gotadsl.co.uk> wrote in message
> news:444fe592@newsgroups.borland.com...
>
>> On Outbound connect. Access violation at address 00471D1B in module
>> 'Project1.exe'. Read of address 00000004
>
> You are getting an AV because you are accessing the AException parameter
> without first checking if it is nil or not.  On a successful connect,
> AException will be nil.
>
>> procedure TForm1.Log(S: String);
>> begin
>>   Memo1.Lines.Add(S);
>> end;
>
> That code is not thread-safe.  You must use TThread.Synchronize, either
> directly or via TIdSync, in order to access the GUI safely from any event
> handler that provides access to a TIdContext parameter.
>
>
> Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive