Article View: borland.public.cppbuilder.internet.socket
Article #1083Re: Assertion Failure when sending email with attachment
From: Remy Lebeau (TeamB)
Date: Thu, 21 Jun 2007 04:10
Date: Thu, 21 Jun 2007 04:10
36 lines
2488 bytes
2488 bytes
"JLoz" <jfsierra@excite.com> wrote in message news:4679c15b$2@newsgroups.borland.com... > The error message I get is > > EAssertion Failed with 'Assertion Failure IdGloba.pas Line 2528' It would be helpful if you would show what is actually on that line. There have been so many releases and snapshots of Indy, there is no way to know which one you are actually using. For instance, there is no assertion on that line in my copy of IdGlobal.pas. Line 2528 is inside the TIdLocalEvent constructor. > The way the attachments are sent is different from what I was > accostumed to do with Indy 9 Attachments work the same as they did in Indy 9. The only difference is that Indy 9 supported only file attachments whereas Indy 10 supports a customizable attachment model. So the TIdAttachment class is now an abstract base class in Indy 10 and can't be instantiated directly anymore. TIdAttachmentFile in Indy 10 is the direct replacement for TIdAttachment in Indy 9. Most of your code that used TIdAttachment in Indy 9 does not need to change in Indy 10, as the methods/properties are the same. The only real change you need to when you instantiate a new attachment, which you already updated that code. > I had problems trying to use IdAttachementFile as it was not being recognized. Then you did not read the documentation, as it tells you which unit each class/component is declared in. Gambit
Technical Details
Message-ID:
<4679fa58$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.247.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4679c15b$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3c4c62cd0a13406d X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4679c15b$2@newsgroups.borland.com> Subject: Re: Assertion Failure when sending email with attachment Date: Wed, 20 Jun 2007 21:10:10 -0700 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.252.126 Message-ID: <4679fa58$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182399064 75.82.252.126 (20 Jun 2007 21:11:04 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.247.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail