1. stewart gutoff
  2. PowerBuilder
  3. Friday, 16 February 2018 15:59 PM UTC

When executing our PowerBuilder EXE under a Window's service, timer events appear to stop running as expected and the application hangs because no more code is executed.  This hang may occur shortly after launching the EXE or may take hours to appear.  Our only recourse is to kill the Window's process and start a new one.  We have experienced this issue since PB11.5 and continue to under PB17.  Our workaround is to return to running our EXE in the foreground, which requires a user logged into the server at all times.

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 16 February 2018 16:04 PM UTC
  2. PowerBuilder
  3. # 1

I'm working on a method for running PowerBuilder apps as a service with little to no changes and will allow them to properly respond to service commands like Pause, Resume, and Stop. Go to this page and download the demo: http://www.topwizprogramming.com/pbrunserv_download.html

 

Comment
  1. stewart gutoff
  2. Friday, 16 February 2018 21:02 PM UTC
Roland,



Thanks for the feedback.  We'll give it a try.



Stew

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 16 February 2018 16:26 PM UTC
  2. PowerBuilder
  3. # 2

Hi Stewart;

   I have no issues with this in my Window Services PB Apps.

What software and/or technique are you using to make the PB App a Service?

Regards ... Chris

Comment
  1. stewart gutoff
  2. Friday, 16 February 2018 21:05 PM UTC
Chris,



We run PBNIServ.exe; our service app starts up multiple simultaneous instances of our EXE, which is an interactive user app that is unaltered except that our response windows are opened with a countdown timer.



Thanks,

Stew

  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 16 February 2018 21:35 PM UTC
Hi Stewart;



  You'll have to contact the author of PBNISEV and see if they can help you.



Personally, I have been using NSSM for my MS-Windows Service Apps for about a decade. Don't let the name fool you - its a serious utility .. and its free. 



HTH



Regards ... Chris

  1. Helpful
  1. stewart gutoff
  2. Thursday, 22 February 2018 22:02 PM UTC
Chris,



Some more context .. As mentioned previously, our program uses PBNISERV to run a service which is a scheduler, which starts single-purpose, non-interactive instances of the executable (our issue isn't with this scheduler that is running as a Service). It's with the instances that get kicked off by the scheduler. Each instance is dedicated to one job, ex. printing a report; printing  a batch of reports; running an HL7 interface, etc.  They know they are running as Windows services but do open windows, even response windows (but with timeouts, so they will automatically close).  We’ve found that on some servers, when the Agent Service starts multiple, simultaneous instances of the executable, one instance will hang (over time).

  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Saturday, 17 February 2018 00:56 AM UTC
  2. PowerBuilder
  3. # 3

PBNIServ is one of my products.

You cannot open a response window or messagebox from a service because it will cause the program to hang waiting for user input that never comes. Starting with Windows Vista, services can no longer display windows that are visible to the user.

Comment
  1. stewart gutoff
  2. Wednesday, 21 February 2018 19:23 PM UTC
Hi,



Some more context .. As mentioned previously, our program uses PBNISERV to run a service which is a scheduler, which starts single-purpose, non-interactive instances of the executable. Each instance is dedicated to one job, ex. printing a report; printing  a batch of reports; running an HL7 interface, etc.  They know they are running as Windows services but do open windows, even response windows (but with timeouts, so they will automatically close).  We’ve found that on some servers, when the Agent Service starts multiple, simultaneous instances of the executable, one instance will hang (over time).



 



 



 

  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.