1. John Murphy
  2. PowerBuilder
  3. Friday, 28 February 2020 19:33 PM UTC

In testing PB2019 normal users programs hung when sending mail and the task had to be stopped.  This did not happen for admin users.  The mail was sent and the hang occurred on mSes.mailLogoff(). I just commented it out and all works fine. In the past if outlook was not running, mail would start it and then this would close it but that does not work anymore so I don't the the logoff is necessary.  I also suspect Symantec but could not get any confirmation from network guy. Everyone is Win10, Outlook 2013.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 2 March 2020 18:41 PM UTC
  2. PowerBuilder
  3. # 1

Hi John;

  FWIW:  If your PB App is performing repeated Login/Logoff mail commands .... please try performing the Mail Login / Logoff only once in your PB Application. Especially, the Logoff (ie: App Close event).  HTH

Regards ... Chris

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 2 March 2020 16:02 PM UTC
  2. PowerBuilder
  3. # 2

If this happens after doing a send, I think it might be hanging on trying to empty the Outbox.

See what happens if you open Outlook, see if your send is still there, empty the outbox "manually" and then try to logoff().

I've also seen things NOT working when running from the IDE but working well when running the executable. This seems to be happening, then not happening and then happening again over periods of time (Outlook updates?)

 

I've read somewhere that this "not emptying" the outbox might be depending on having "caching" enables somewhere in Outlook or not (would have to search on that to find that post, somewhere in this forum I believe).

After sending with MAPI, we had to do a SendAndReceive(false), using OLE, so we decided to stop using MAPI altogether and use OLE for everything, except for popping up an address book. (and only when user has Office 32 bits).

HIH

Comment
  1. John Murphy
  2. Thursday, 5 March 2020 17:39 PM UTC
The mail does send and the outbox is cleared. I am going to close this as I think the logout should not be called. It is a difference between versions as the code has worked for a very long time but we have not needed to use the login since we started using a domain. The log out has not rely been used since Microsoft stopped allowing the program to spawn Outlook.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.