1. Pierre DETE
  2. PowerBuilder
  3. Monday, 6 September 2021 17:36 PM UTC

Hi PB users,

We try to solve a crash problem with PB 2019 R2, that occurs in the constructor event of a user object instantiated by a window running with MS windows server 2019 and task scheduler with "Run whether user is logged on or not" mode.

Without the task scheduler, the windows opens normally.

We cannot reproduce this problem on our own severs. Other client do not have this problem.

The crash only occurs on this window which creates a lot of datastore. 

ids_credline_detail = CREATE u_ds_standard
ids_credline_detail.uf_init ("rw_credline_detail")
ids_credline_detail.Reset ()

With PBDEBUG we can see that PB stops on the reset.

Executing instruction at line 48
Executing instruction at line 49
Executing object function RESET for class U_DS_STANDARD, lib entry U_DS_STANDARD
Executing system dll function

There is no overwrite into reset event, it's the standard reset. And there is no DLL call on our side at this point.

We Try :

- heapsize solution into registry : SharedSection=1024,20480,16384

- [DataStore Behavior]

UseHwnd=no

- Disablebind 0/1

- Ms Installation of C++ redistribualbl 2015-2019

 

An idea would be welcome to solve this very strange case. Thank you in advance.

 

Pierre

 

 

 

 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 6 September 2021 18:11 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

I would start by looking at the event viewer. Are there any pending windows updates waiting for a server reboot?

sfc /scannow

The weird thing is that you say the program only fails when running from the task scheduler?

Have you tried to set highest privilege for the execution?

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 7 September 2021 16:51 PM UTC
  2. PowerBuilder
  3. # 2

Hi Pierre;

  Did you include a "Manifest" when you compiled the App EXE (A Project Security setting)?

Regards ... Chris

Comment
There are no comments made yet.
Pierre DETE Accepted Answer Pending Moderation
  1. Wednesday, 8 September 2021 08:24 AM UTC
  2. PowerBuilder
  3. # 3

Hi Miguel,
The server was reboot when I asked for Visual C++ 2015-2019 Update.
Exactly the program fails with task scheduler when the "Run whether user is logged on or not" is activated with high privilege too.

I assume that in this case the system logs in but not with exactly the same environment as when the user is logged in manually. 

Regards. Pierre

Comment
  1. Miguel Leeuwe
  2. Wednesday, 8 September 2021 10:15 AM UTC
I'm not sure if it could have something to do with taskscheduler wanting to run the program without any visual output. Is the screen locked when it crashes? Have you tried running a batch / cmd file to run the app from the taskscheduler?
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 8 September 2021 10:16 AM UTC
Try running it as that "specific" user. I think you can specify that in the task scheduler...
  1. Helpful
There are no comments made yet.
Pierre DETE Accepted Answer Pending Moderation
  1. Wednesday, 8 September 2021 08:26 AM UTC
  2. PowerBuilder
  3. # 4

Hi Chris,

No "Manifest". Should we ? I don't know this option.

Regards. Pierre

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 September 2021 13:18 PM UTC
  2. PowerBuilder
  3. # 5

Hi Pierre;

  You can see this option in the Project Painter' "Security" tab, as follows:

HTH

Regards ... Chris

Comment
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.