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