Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: Problem with Delphi 2006 Indy that is NOT in Kyix/Indy

www.cryer.info
Managed Newsgroup Archive

Re: Problem with Delphi 2006 Indy that is NOT in Kyix/Indy

Subject:Re: Problem with Delphi 2006 Indy that is NOT in Kyix/Indy
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 21 Aug 2006 13:02:04

"Vincent" <vydorian@gmail.com> wrote in message
news:44e9bd88$1@newsgroups.borland.com...

> Thanks, the only thing left is when I recompile/build my code
> with Indy 10 I get
>
> "[Pascal Warning] ScanWindowUnit.pas(81): W1020 Constructing instance of
> 'TIdAttachment' containing abstract method
'TIdAttachment.FinishTempStream'"

In Indy 9, TIdAttachment was its own self-contained class.  But in Indy 10,
it is now an abstract base class instead.  Do not instantiate TIdAttachment
directly anymore.  You have to use one of the new descendant classes
(TIdAttachmentFile or TIdAttachmentMemory, orwrite your own custom class)
instead.

> I assume I can ingore that?

No.  It is a real warning that you need to fix in your code.  If you
instantiate an abstract class (which I will never understand why Delphi
allows that), you will have problems when the instance is actually accessed
later on.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive