It seems to be some strange PB4/Tailbite memory management issue, because :
- the same code works with PB4 on NT based systems
- the same code works with PB3.94 on NT based systems AND Win95 based systems
I think I found the problem : the string variable initialization in PureSMTP_Init() when the library is loaded.
If I avoid this, there is no crash anymore.
Changes :
Code: Select all
ProcedureDLL PureSMTP_Init()
...
; PureSMTP_ContentType = "text/plain; charset=" + #g + "iso-8859-1" + #g
; PureSMTP_XMailer = "PureSMTP"
; PureSMTP_Boundary = "PureSMTP_"
...
EndProcedure
;
Procedure.l PureSMTP_SendMailEx(MailTo.s, MailFrom.s, Subject.s, MsgBody.s, Attachments.s, UserName.s, Password.s, HeaderAddon.s)
...
;
If PureSMTP_XMailer = ""
PureSMTP_XMailer = "PureSMTP"
EndIf
If PureSMTP_ContentType = ""
PureSMTP_ContentType = "text/plain; charset=" + #g + "iso-8859-1" + #g
EndIf
If PureSMTP_Boundary = ""
PureSMTP_Boundary = "PureSMTP_"
EndIf
;
...
EndProcedure
The users with NT based systems too please. If it works, I will update the PB4 library.