Article View: borland.public.cppbuilder.internet.socket
Article #836Re: Assertion Error while sending email
From: JLoz
Date: Wed, 01 Aug 2007 22:54
Date: Wed, 01 Aug 2007 22:54
161 lines
7945 bytes
7945 bytes
Gambit,
Below is the stack trace you asked for. The "Cannot decode Response" error
occurs after the fact as I have a try finally around this and it happens
when I try to disconnect by using this code
try {
// try {
IdSMTP1->Connect();
IdSMTP1->Send(IdMessage1);
} catch (const Sysutils::Exception& E) {
if (!UpperCase(E.Message).Pos("RANGE CHECK ERROR")) {
err = E.Message;
Header.Set("Error", E.Message);
Header.Set("Result", "0");
}
}
} __finally {
if(IdSMTP1->Connected()) IdSMTP1->Disconnect(true);
}
IdMessage1->Clear();
if(err != "") throw Sysutils::Exception(AnsiString(err));
********** STACK TRACE GOTTEN WITH MADEXCEPT **********
date/time : 2007-08-01, 18:46:14, 773ms
computer name : JLoz
user name : JLoz <admin>
registered owner : Home
operating system : Windows XP Service Pack 2 build 2600
system language : English
system up time : 2 hours 5 minutes
program up time : 28 seconds
processors : 2x Intel(R) Pentium(R) D CPU 3.00GHz
physical memory : 1369/2046 MB (free/total)
free disk space : (C:) 105.31 GB
display mode : 1280x1024, 32 bit
process id : $530
allocated memory : 17.18 MB
executable : TB.exe
exec. date/time : 2007-08-01 18:45
bde version : 5.1.1.1
compiled with : BCB5
madExcept version : 3.0e
contact name : JLoz
contact email : jfsierra@excite.com
callstack crc : $09df8dc9, $b8797d6b, $b8797d6b
exception number : 1
exception class : EAssertionFailed
exception message : Assertion failure
(C:\Libraries\Indy\Lib\System\IdGlobal.pas, line 2528).
main thread ($f4c):
004f624d +0029 TB.exe IdGlobal 2529 +2 IndyLength
004fdb41 +0039 TB.exe IdStreamVCL 86 +4 TIdStreamHelperVCL.Write
004f76e5 +0045 TB.exe IdGlobal 2913 +2 WriteStringToStream
004a3da9 +0031 TB.exe IdCoder TIdEncoder.Encode
004e71f1 +0109 TB.exe IdSASLCollection _16406
004e7529 +0135 TB.exe IdSASLCollection TIdSASLEntries.LoginSASL
004e8cac +01e4 TB.exe IdSMTP TIdSMTP.Authenticate
004e8fb6 +000e TB.exe IdSMTP TIdSMTP.Send
00431d81 +1001 TB.exe Indy10Email.cpp 211 +72 TEmail.SendEmail2
00427b7c +04e4 TB.exe MainForm.cpp 972 +16 TForm1.EnviarEmail
00427c8d +00a1 TB.exe MainForm.cpp 981 +3
TForm1.btnConfEnviarEmailClick
005a72bb +0083 TB.exe Controls 4288 +9 TControl.Click
00569c7b +002f TB.exe StdCtrls 2885 +3 TButton.Click
005ca248 +008c TB.exe buttons 1346 +17 TBitBtn.Click
00569de2 +001e TB.exe StdCtrls 2937 +1 TButton.CNCommand
005a7093 +0167 TB.exe Controls 4227 +37 TControl.WndProc
005aa686 +0216 TB.exe Controls 5731 +47 TWinControl.WndProc
00569bc6 +0086 TB.exe StdCtrls 2865 +13 TButtonControl.WndProc
005a6e16 +0036 TB.exe Controls 4152 +5 TControl.Perform
005aa830 +003c TB.exe Controls 5774 +6 DoControlMsg
005aae65 +0015 TB.exe Controls 5950 +1 TWinControl.WMCommand
005a7093 +0167 TB.exe Controls 4227 +37 TControl.WndProc
005aa686 +0216 TB.exe Controls 5731 +47 TWinControl.WndProc
005aa1d0 +0034 TB.exe Controls 5612 +3 TWinControl.MainWndProc
0058d360 +0014 TB.exe Forms 1459 +8 StdWndProc
7e41b8fe +0044 USER32.dll SendMessageW
7e41f658 +0016 USER32.dll CallWindowProcA
005aa7b4 +0124 TB.exe Controls 5755 +20 TWinControl.DefaultHandler
005a774d +0015 TB.exe Controls 4410 +1 TControl.WMLButtonUp
005a7093 +0167 TB.exe Controls 4227 +37 TControl.WndProc
005aa686 +0216 TB.exe Controls 5731 +47 TWinControl.WndProc
00569bc6 +0086 TB.exe StdCtrls 2865 +13 TButtonControl.WndProc
005aa1d0 +0034 TB.exe Controls 5612 +3 TWinControl.MainWndProc
0058d360 +0014 TB.exe Forms 1459 +8 StdWndProc
7e4196c2 +000a USER32.dll DispatchMessageA
005984c4 +00ac TB.exe Forms 6630 +13 TApplication.ProcessMessage
0059850b +000f TB.exe Forms 6649 +1 TApplication.HandleMessage
00598791 +0091 TB.exe Forms 6732 +15 TApplication.Run
0040139c +00dc TB.exe TB.cpp 34 +13 WinMain
7c910942 +0025 ntdll.dll RtlAcquirePebLock
7c91096d +000c ntdll.dll RtlReleasePebLock
005e454c +014c TB.exe __startup
thread $208 (TDirWatchThread): <priority:1>
7c90eb94 +000 ntdll.dll KiFastSystemCallRet
7c90e9a9 +00a ntdll.dll NtWaitForMultipleObjects
7c8094dc +000 kernel32.dll WaitForMultipleObjectsEx
7c80a070 +013 kernel32.dll WaitForMultipleObjects
00517442 +036 TB.exe TDirChangeButton WaitForWatch
005177a7 +21b TB.exe TDirWatchThread Execute
00482dff +02b TB.exe Madexcept _17173
004b3158 +01c TB.exe Classes _16999
004bfc20 +028 TB.exe System _16624
00482ce1 +00d TB.exe Madexcept _17171
00482d4b +037 TB.exe Madexcept _17172
>> created by main thread ($f4c) at:
005174f6 +032 TB.exe TDirWatchThread.Create
thread $d24: <priority:1>
7c90eb94 +00 ntdll.dll KiFastSystemCallRet
7c90e319 +0a ntdll.dll NtRemoveIoCompletion
00482ce1 +0d TB.exe Madexcept _17171
00482d4b +37 TB.exe Madexcept _17172
>> created by main thread ($f4c) at:
71a5dbb3 +00 mswsock.dll
thread $78:
7c90eb94 +0 ntdll.dll KiFastSystemCallRet
7c90d85a +a ntdll.dll NtDelayExecution
thread $f28:
7c90eb94 +0 ntdll.dll KiFastSystemCallRet
7c90e319 +a ntdll.dll NtRemoveIoCompletion
thread $ff0:
7c90eb94 +00 ntdll.dll KiFastSystemCallRet
7c90e9a9 +0a ntdll.dll NtWaitForMultipleObjects
7c8094dc +00 kernel32.dll WaitForMultipleObjectsEx
00482ce1 +0d TB.exe Madexcept _17171
00482d4b +37 TB.exe Madexcept _17172
>> created by main thread ($f4c) at:
77dfa17c +00 ADVAPI32.dll
thread $23c:
7c90eb94 +0 ntdll.dll KiFastSystemCallRet
7c90e319 +a ntdll.dll NtRemoveIoCompletion
Thanks again
"JLoz" <jfsierra@excite.com> wrote in message
news:46afb0f1$1@newsgroups.borland.com...
> Can you get a stack trace when the error occurs? There are
>> plenty of third-party tools available for that.
>>
> Is there one you recommend?
>
> Is the current version of Indy still 10.1.6?
>
>>
>> Gambit
>>
>>
>
>
Technical Details
Message-ID:
<46b10f2b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46ae4529$1@newsgroups.borland.com> <46af7382@newsgroups.borland.com> <3mtua39vadcc2de0p2ertm0fl224sevvu7@4ax.com> <46af7f59$1@newsgroups.borland.com> <46af83cc$1@newsgroups.borland.com> <46af86e7@newsgroups.borland.com> <46afa742$1@newsgroups.borland.com> <46afb0f1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,da4e10289ba23828 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "JLoz" <jfsierra@excite.com> From: "JLoz" <jfsierra@excite.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <46ae4529$1@newsgroups.borland.com> <46af7382@newsgroups.borland.com> <3mtua39vadcc2de0p2ertm0fl224sevvu7@4ax.com> <46af7f59$1@newsgroups.borland.com> <46af83cc$1@newsgroups.borland.com> <46af86e7@newsgroups.borland.com> <46afa742$1@newsgroups.borland.com> <46afb0f1$1@newsgroups.borland.com> Subject: Re: Assertion Error while sending email Date: Wed, 1 Aug 2007 18:54:37 -0400 Lines: 163 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 63.163.143.187 Message-ID: <46b10f2b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1186008875 63.163.143.187 (1 Aug 2007 15:54:35 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail