1. George Hannah
  2. PowerBuilder
  3. Monday, 13 June 2022 15:00 PM UTC

Hi all. I have a powerbuilder app that runs from the scheduler to automatically generate PDFs from datawindows, hence no messageboxes, etc. 

When I added some messageboxes to debug, the app worked. When I remove those, it hangs. I suspect that the message boxes allowed other threads to process, kind of like do_events() from VB. Is there a similar function in powerbuilder? How do I get the same effect as the messageboxes, while not popping up message boxes? 

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 13 June 2022 18:25 PM UTC
  2. PowerBuilder
  3. # 1

Hi George;

  Instead of a MessageBox() command .. try a Yield() command instead. HTH

Regards ... Chris

Comment
  1. George Hannah
  2. Monday, 13 June 2022 18:37 PM UTC
I think that's what I was looking for. Thanks!
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 13 June 2022 20:01 PM UTC
You are most welcome! ;-)
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 13 June 2022 15:13 PM UTC
  2. PowerBuilder
  3. # 2

you should specify:  PB version & PDF generation method used

 

It sounds like you have some other problem in your code.   I do similar processing without issue

 

Comment
  1. George Hannah
  2. Monday, 13 June 2022 17:58 PM UTC
This app currently works, running on a 2003 server. I migrated from 2017 to 2019 R3 and installed on a windows 2016 server. It has worked every step along the way until I put it on the new server.
  1. Helpful
  1. mike S
  2. Monday, 13 June 2022 18:54 PM UTC
your problem is possibly related to MAPI email
  1. Helpful
  1. Roland Smith
  2. Tuesday, 14 June 2022 12:56 PM UTC
Using MAPI, your PB app communicates with the email client on the machine it is running on (usually Outlook). SMTP would be better because it communicates directly with the mail server.
  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.