1. Stefan Malkwitz
  2. PowerBuilder
  3. Tuesday, 13 August 2019 09:08 AM UTC

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

 

 

Accepted Answer
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 13 August 2019 16:23 PM UTC
  2. PowerBuilder
  3. # Permalink

Are you calling for a new sessions every time?

You should call for a NewMailSession only ONCE in an application (or module). Ideally, you open the new mail session ONE time, then you use that same session until you close the session before you close the application (or the module).


Viel Gluck,

Olan

 

Comment
  1. Stefan Malkwitz
  2. Wednesday, 14 August 2019 08:31 AM UTC
Hi Olan thx 4 the answer.



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
  1. Helpful
  1. Olan Knight
  2. Wednesday, 14 August 2019 14:44 PM UTC
Excellent! I'm glad that solved your problem!



Olan
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 14 August 2019 01:02 AM UTC
  2. PowerBuilder
  3. # 1

Hi Stephan;

  By chance, did you modify the PB2017's PB.ini to include a directive to use "Simple MAPI" (instead of the "Extended" default) but then forget to modify the PB2019's PB.ini with the same setting?

Regards ... Chris

Comment
  1. Stefan Malkwitz
  2. Wednesday, 14 August 2019 08:37 AM UTC
Hi Chris and thx 4 the answer



the ini are ok i think.

in the 'C:\Users\\AppData\Local\Appeon\PowerBuilder 19.0\pb.ini'

there is



[PB]

UseSimpleMAPI=yes



and the application has the pb.ini in the same directory as the exe with the same.

I think simple mapi is active on both.



greeting from berlin

-Stefan

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.