login about faq

Hi,

We’re testing the Chilkat Email ActiveX SMTP component within our Corel Paradox application (v 11.0.0.411). 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:

Uses "Chilkat.Email2"
AddTo(strEMailName String, strEmailAddress String) LongInt
CloseSmtpConnection() LongInt
endUses

method run(var eventInfo Event)
Var
strHospitalName, strHospitalPhone, strEmailName, strAttachFile, strEmailAddress, vmessage,vsender, vmobilenum, vpassword, vusername, strole STRING
tcEM, tcUAH, tcP, tcCltN, tcUser TCURSOR
ckmailman, ckemail,params,httpresult OLEAUTO
intSuccess LONGINT
endvar

ckmailman.open("Chilkat.MailMan2")
ckmailman.UnlockComponent("ValidUnlockCodePurchased")

;set SMTP Server
ckmailman.SmtpHost = "smtp.vetsone.com"
ckmailman.SmtpUsername = "dusty@vetsone.com"
ckmailman.SmtpPassword = "password"

tcEM.open(":WORK:EMAIL.DB")
scan tcEM:
;create email
ckemail.open("Chilkat.Email2")
ckemail.Subject = tcEM."MessageSubject"
ckemail.Body = tcEM."MessageBody"
ckemail.FromName = tcEM."SendFromName"
ckemail.FromAddress = tcEM."SendFrom"
ckemail.AddTo(tcEM."SendToName", tcEM."SendTo")
strAttachFile = ckemail.AddFileAttachment(tcEM."MessageFile")
intSuccess = ckmailman.SendEmail(ckemail)
if (intSuccess <> 1) Then
tcEM.edit()
tcEM."Result" = "ERROR: Email Not Sent" + string(ckmailman.LastErrorText)
tcEM.endEdit()
else
tcEM.edit()
tcEM."Result" = "OK: Email was successfully sent on "+string(today())+"@"+string(time())
tcEM.endEdit()
endif
;ckemail.close() –if active, PARADOX CRASHES
endscan
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
PARADOX 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)
Level: Error
Keywords: Classic
User: N/A
Computer: AHMSSQL
Description:
Faulting application name: pdxwin32.exe, version: 11.0.0.411, time stamp: 0x42374ed3
Faulting module name: PXPAL32.dll, version: 11.0.0.411, 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

asked Jun 30 '12 at 12:54

bwcdusty's gravatar image

bwcdusty
1111


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.

link

answered Jul 03 '12 at 16:29

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Hello Dusty,

have you solved the problem / found a workaround? I´m facing a similar problem with Paradox 11:

http://www.chilkatforum.com/questions/2193/xml-application-crash-when-calling-certain-methods-paradox-11

Thanks,

Lars

link

answered Jan 16 '13 at 02:29

whocares81's gravatar image

whocares81
1111

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×80

Asked: Jun 30 '12 at 12:54

Seen: 1,626 times

Last updated: Jan 16 '13 at 02:29

powered by OSQA