We’re testing the Chilkat Email ActiveX SMTP component within our Corel Paradox application (v 18.104.22.1681). The email with attachment is successfully sent, but when the code closes the Email2 object or closes the MailMan2 object, or just ends the code, Paradox crashes. The code is shown below:
AddTo(strEMailName String, strEmailAddress String) LongInt
method run(var eventInfo Event)
strHospitalName, strHospitalPhone, strEmailName, strAttachFile, strEmailAddress, vmessage,vsender, vmobilenum, vpassword, vusername, strole STRING
tcEM, tcUAH, tcP, tcCltN, tcUser TCURSOR
ckmailman, ckemail,params,httpresult OLEAUTO
ckemail.Subject = tcEM."MessageSubject"
ckemail.Body = tcEM."MessageBody"
ckemail.FromName = tcEM."SendFromName"
ckemail.FromAddress = tcEM."SendFrom"
strAttachFile = ckemail.AddFileAttachment(tcEM."MessageFile")
intSuccess = ckmailman.SendEmail(ckemail)
if (intSuccess <> 1) Then
tcEM."Result" = "ERROR: Email Not Sent" + string(ckmailman.LastErrorText)
tcEM."Result" = "OK: Email was successfully sent on "+string(today())+"@"+string(time())
;ckemail.close() –if active, PARADOX CRASHES
ckmailman.invoke("CloseSmtpConnection") - this works
;ckmailman.close() –if active, PARADOX CRASHES
;sleep(100000) – if active, PARADOX continues to work for the length of the sleep command, then crashes
THE APPLICATION ERROR when PARADOX CRASHES
Log Name: Application
Source: Application Error
Date: 6/30/2012 12:56:07 AM
Event ID: 1000
Task Category: (100)
Faulting application name: pdxwin32.exe, version: 22.214.171.1241, time stamp: 0x42374ed3
Faulting module name: PXPAL32.dll, version: 126.96.36.1991, time stamp: 0x42374dcc
Exception code: 0xc0000005
Fault offset: 0x0002e833
Faulting process id: 0x10bc
Faulting application start time: 0x01cd56796ce63f10
Faulting application path: C:Program Files (x86)ParadoxProgramspdxwin32.exe
Faulting module path: C:Program Files (x86)ParadoxProgramsPXPAL32.dll
Report Id: e6e3f7ac-c26f-11e1-a089-001fe2df0d36
Do you have any ideas that we can explore to resolve this? Please let me know when else you need to help, thanks!
Take Care, Dusty
Unfortunately, I don't have any good advice. The Chilkat ActiveX components are all standard ActiveX's w.r.t. object instantiation, destruction, and registration. No other programming language has similar problems, and the ActiveX's have been in use for approx 10 years. This leads me to believe the problem is in Paradox, and probably something general that might occur with any ActiveX. I don't have any advice because I've never programmed with Paradox.
have you solved the problem / found a workaround? I´m facing a similar problem with Paradox 11: