NetTalk Central

Author Topic: Load SSL DLL's fail on sending email  (Read 3669 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Load SSL DLL's fail on sending email
« on: April 03, 2017, 02:10:01 AM »

Hi,

Every now and again I get this error on sending emails.

There is a procedure that sends emails from a list, it runs through the list and STARTS a few threads at a time, each thread sends a different mail.
The first mail and subsequent mails gets this error.
Restarting the application works and the mails go through fine on restart.
As far as I can see I have the correct DLL's in the folder.

Any ideas on why this might happen, this procedure should not fail or rely on re-start as it's not being monitored or managed by a user.


thanks

Johan


Below log from debugview++

72   8.875074   12432   xtvc.exe   [Net] [7] NetSimple(Client).Open - Will use InActive (Idle) Timeout (hs) = 9000
73   8.875156   12432   xtvc.exe   [NetDLL] [7] SimpleClientOpen() : Error. Could not load the SSL DLLs (libeay32.dll, ssleay32.dll, libssl32.dll, msvcr120.dll)
74   8.875250   12432   xtvc.exe   [Net] [7] NetSimple._CallErrorTrap - Error = -73 = Unable to Open Connection to smtp.gmail.com:465 : SSL Could Not Load SSL DLLs [LIBEAY32.DLL, LIBSSL32.DLL, SSLEAY32.DLL, MSVCR120.DLL] Function = NetSimple(Client).Open Server = smtp.gmail.com Port = 465
75   8.875389   12432   xtvc.exe   [Net] [7] NetSimple.ErrorTrap - <no display> Error = -73 = Unable to Open Connection to smtp.gmail.com:465 : SSL Could Not Load SSL DLLs [LIBEAY32.DLL, LIBSSL32.DLL, SSLEAY32.DLL, MSVCR120.DLL] Function = NetSimple(Client).Open Server = smtp.gmail.com Port = 465
76   8.875522   12432   xtvc.exe   [Net] [7] NetEmailSend.ErrorTrap (Email (SMTP)) - This error was so bad we need to delete all records from DataQueue and abort the connection
77   8.875584   12432   xtvc.exe   [Net] [7] NetEmailSend._DeleteAllMessagesInDataQueue (Email (SMTP)) - Attention: All messages in the queue will be deleted now.




Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Load SSL DLL's fail on sending email
« Reply #1 on: April 04, 2017, 11:10:22 PM »
It should only load the DLL's once.
So I recommend perhaps just doing 1 thread to "warm it up" then it should be ok for multiple threads after that.

cheers
Bruce