Some Infos:
Machine : Windows Server 2012 R2 Standard
Powerbuilder: Version 2019 Build 2082
Email Client: Mozilla Thunderbird 60.8.0 (32-Bit)
Hello,
im trying to migrate one of our projects from PB2017 to PB2019. But in PB2019 the programm keeps crashing when i use the MAPI.
What i have found out so far:
In the PB2019 development enviroment everything works as it shoud. I can send as many mails that i want. :)
But if i compile the project und start the application some weird things happen.
The first email, after application start, always works fine and get sends through the email client. But if i try to send a second email the application crashes with an APPCRASH
Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: sdlog_expert_dmlr.exe
Anwendungsversion: 1.0.0.1
Anwendungszeitstempel: 5ce82bed
Fehlermodulname: KERNELBASE.dll
Fehlermodulversion: 6.3.9600.18938
Fehlermodulzeitstempel: 5a7dd8a7
Ausnahmecode: c0000005
Ausnahmeoffset: 00015ef8
Betriebsystemversion: 6.3.9600.2.0.0.272.7
Gebietsschema-ID: 1031
Zusatzinformation 1: 7e5a
Zusatzinformation 2: 7e5a181b98c1b7d0d46234df2ecd3094
Zusatzinformation 3: 3e82
Zusatzinformation 4: 3e828664fc52fe7ecc661f08da1f867c
I already have started the app with the /pbdebug command and generate the debug file. It seems like the app crashes when the programm call the 'mailLogon' function.
le_mret = luo_mailSess.mailLogon(mailNewSession!)
Any suggestions? Maybe any ddl problems?
Let me know if you need further informations.
Thanks from Berlin
Have a nice day
-Stefan Malkwitz
We create a new object an call NewMailSession for every mail that are send. Thats how it was.
I have rewritten some code and now we have a global object for mail sending and only call 'NewMailSession' once. And now it works perfect. No crashed till now.
thx for your quick answer
greetings from berlin
-Stefan
Olan