1. John Vanleeuwe
  2. PowerBuilder
  3. Saturday, 22 October 2022 07:06 AM UTC

Hi guys,

using PB2019 R2 ( i know :)) 

 

we are having a batch processor executable , that does a whole lot of processing on our clients server.  We have been updating some of our clients to our latest version of our software. since this update , we are noticing that our executable has stopped working and dissappeared in the morning , only on these "updated" clients.

we have added a lot of debugging , and we have found out that the latest executed line of code is the one just before the  dw_tmp.Saveas function

dw_tmp.Modify("DataWindow.Export.PDF.Method = NativePDF!")

write_logging("just before the save as function")

dw_tmp.SaveAs(ls_file,PDF!,FALSE)

 

 

if it was a DLL issue, i would suspect its either always failing and not just after a 12 hour span or os.

 

This function is a generic function we use throughout our application to save a datawindow into a PDF file. 

 

in the application object /tab PDF export , we have checked both 

ALWAYS USE NATIVEPDF! METHOD FOR PDF EXPORT

PACKAGING CUSTOM FONTS IN THE GENERATED PDF FILES

 

Memory leak could be a cause , but then why always on the same statement ( dw_tmp.saveas) ? 

Any idea's as to why this exe is closing itself down please ? 

 

P.S. I havent checked the process manager to see if the .exe is still running there and only the visual gui is gone or not.

 

TIA

John

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 22 October 2022 14:38 PM UTC
  2. PowerBuilder
  3. # 1

Hi John;

   Can you tell us ...

  • OS version & build ?
  • How is the batch App started?
  • Under what account is the batch App run?
  • Are there any mini-crash dumps in the O/S event logs? 
  • Did you add a PB.ini file that turns off Accessibility mode?
  • Did you add a PB.ini file that turns of DataStore handles (if DS's are used)?

Regards ... Chris 

Comment
  1. John Vanleeuwe
  2. Monday, 24 October 2022 16:24 PM UTC
Thanks Chris,



trying to answer you as complete as i possibly can



OS version & build ?

=> doesn't matter , any updated client suffers from this new behaviour



How is the batch App started?

=> its a compiled PB exe and is being started by us with admin rights



Under what account is the batch App run?

=> the admin one :)



Are there any mini-crash dumps in the O/S event logs?

=> sure , application error for my exe





Did you add a PB.ini file that turns off Accessibility mode?

=> we have used the same pb ini for years, no change there



Did you add a PB.ini file that turns of DataStore handles (if DS's are used)?

=> we have used the same pb ini for years , no change there.





TIA

John
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 24 October 2022 17:05 PM UTC
Since you indicated that you do get a mini-crash dumps, I would then suggest opening a Support Ticket for this issue.
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.