Re: TIdSMTP.Connect rasises AV

Giganews Newsgroups
Subject: Re: TIdSMTP.Connect rasises AV
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Wed, 29 Jun 2005

"Jon" <jonsjoste…@hotmail.com> wrote in message
news:A7F228A88CD0E240jonsjoste…@hotmail.com...

> *** Code with error: ***

What is the actual error message?

> initialization
>  IdSMTP := TIdSMTP.Create(nil);
>  IdSMTP.Connect;
> finalization
>  IdSMTP.Free;
> end.

Why are you connecting in the 'initialization' secton to begin with?  My
guess would be that TIdSMTP is trying to access something in other unit that
has not been initialized yet.

Gambit

Replies

None

In response to

TIdSMTP.Connect rasises AV posted by Jon on Wed, 29 Jun 2005