Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
Author | Forum: PowerTCP Mail for ActiveX Topic: Exception thrown during logout |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 7, 2004 1:45 PM I have a very interesting problem. We have been running the following versions for sometime without issue. 12/04/2002 09:55 AM 434,176 DartMail.dll 09/01/2000 12:03 PM 49,152 DartObjects.dll 11/22/2002 11:08 AM 221,184 DartSock.dll 11/25/2002 01:31 PM 114,688 DartUtil.dll But over the last several months we have rebuilt several servers (win2k SP4) and our c++ component that calls dartmail, appears to be catching an exception from smtp->raw_Logout(). The emails are sent successfully and the SMTP log shows nothing odd. The package can run as admin, interactive, or any other ID and the problem still persists. If we do not catch the exception, we get the following event entry: Exception: C0000005 Address: 0x0000001D Call Stack: + 0x1d DartMail!DllUnregisterServer + 0x1dd2f scCoolMailExSender!_com_ptr_t<_com_IIID<DartMail::ISmtp,&_GUID_6484c00c_afb3_11d2_a03c_004005405625> >::~_com_ptr_t<_com_IIID<DartMail::ISmtp,&_GUID_6484c00c_afb3_11d2_a03c_004005405625> > + 0x25 scCoolMailExSender!CMailSender::SendHTMLMail + 0x322a scCoolMailExSender!CMailSender::SendMail1 + 0x236 OLEAUT32!DispCallFunc + 0x15d OLEAUT32!CreateTypeLib2 + 0x2e1b scCoolMailExSender!ATL::CComTypeInfoHolder::Invoke + 0x66 scCoolMailExSender!ATL::IDispatchImpl<IMailSender,&IID_IMailSender,&LIBID_COOLMAILEXSENDERLib,1,0,ATL::CComTypeInfoHolder>::Invoke + 0x47 OLEAUT32!VarDecCmp + 0x1537 Our component is hosted within a COM+ package by itself. If we remove our component from the package, all works well. What is mind boggling is that the older servers appear to be indentical to the new ones. Same patches and OS. Any ideas? Michael |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 7, 2004 2:00 PM Those are all very old DLL's I would try getting the latest Mail tool from our website and using the DLLs from that. By the way, DartObjects was absorbed into DartSock back in the 90's so you are distributing that for no reason. |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 7, 2004 2:49 PM OK...downloaded the new version...dated the following: 03/05/2003 04:25 PM 438,272 DartMail.dll 02/28/2003 09:04 AM 221,184 DartSock.dll 02/28/2003 09:05 AM 114,688 DartUtil.dll I am using a smart pointer to hold the SMTP object. When I exit the scope of the try/catch, the smart pointer tries to release the SMTP smart pointer. It is the call below on the DartMail::ISmtp that causes the exception: void _Release() throw() { if (m_pInterface != NULL) { m_pInterface->Release();this line } } The key seems to be whether it is in a COM+ package or not. This code works fine outside of a COM+ package. Any other ideas? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 7, 2004 2:53 PM Please try these DLL's: http://support.dart.com/downloads/DartMail-2.8.0.23.zip These were compiled but never released. If that doesn't work, then you will need to contact us off of the forum with details on how to recreate the scenario. We will need a VERY SIMPLE sample project that can be easily used here. The address to send it to is support@dart.com |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 7, 2004 2:58 PM That appears to work!!! Any cautions with this build?? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 7, 2004 3:36 PM None. I have been using it for a while now. We're getting ready to release it in a few weeks. |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 7, 2004 3:42 PM Thanks! |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 22, 2004 9:05 PM We are noticing an issue with the version we received. If we look at the SMTP log, we have the following comma added to the recipients: ---> MAIL FROM:<Ereq@southernco.com> SIZE=269 BODY=7BIT RET=HDRS RCPT TO:<mwpeters@SOUTHERNCO.COM> NOTIFY=NEVER RCPT TO:<> NOTIFY=NEVER <--- 250 2.1.0 <Ereq@southernco.com>... Sender ok 250 2.1.5 <mwpeters@SOUTHERNCO.COM>... Recipient ok 553 5.0.0 <>... User address required ---> DATA <--- 354 Enter mail, end with "." on a line by itself ---> To: mwpeters@SOUTHERNCO.COM, From: Ereq@southernco.com Subject: eReq Information Content-Transfer-Encoding: Quoted-Printable Content-Type: text/plain MIME-Version: 1.0 Message-ID: <4591cbbd05033d07d4@[146.126.195.238]> Date: Thu, 22 Apr 2004 20:54:40 -0400 Notice the "---> To: mwpeters@SOUTHERNCO.COM," line appears to have the comma added. Where as before it did not. This appears to be causing the normal message "headers" to appear in the body of the email. |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 22, 2004 9:09 PM Hold off on looking into this...our developers may be the cause. Sorry |
User717 Posts: 11 Member Since: 05/30/01 |
posted April 22, 2004 9:18 PM It appears that we are adding a recipient that is equal to a single space. And the SMTP communication is monkeyed up due to that. But ideally we should not be adding such a recipient. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 22, 2004 10:24 PM You should do a trim on all your addresses first, then don't add addresses that are empty. I have to do that with the app I wrote to mail stuff to customers from our Goldmine database. |
Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
![]() |