Re: TIdSMTP.Connect rasises AV

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

"Jon" <jonsjoste…> wrote in message

> *** 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.




In response to

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