Hi Keith,

Last week I discovered a possibly related issue with processes not waking up.

I have a process, p1 which runs in a loop, executes some code and delays itself 
for a certain time.

code:
//Method1
<>abort:=False
<>p1:=Current process
$delay:=30*60  //beep every 30 seconds
Repeat 
        BEEP
        DELAY PROCESS(<>p1;$delay)
Until (<>abort)

Just start Method1 as a new process and open the runtime explorer to watch the 
status.

If another method pauses p1 and resumes it within the remaining delay time, the 
process p1 status goes from delayed to paused. This way p1 stays paused until 
it gets a (second) resume from somewhere else.

Eg:

PAUSE PROCESS(<>p1)
RESUME PROCESS(<>p1)
TRACE
<>abort:=True

If this code is run (pause immediately followed by resume) while the status of 
p1 is delayed, the process will stay in status delay until the delay time has 
passed and then change to paused.

This worked fine in v15. I don’t know if this is actually a bug, but here is a 
change in behavior between v15 and v16.
In v15, when running pause and resume, the (delayes/paused) process continues 
immediately (beeps) and then waits again in the next delay.

Its like in v16 resume process does not work correctly when a delayed process 
is paused.
In my project I found a work around, I did not report a bug.

HTH
Koen
 
> Op 5 feb. 2018, om 09:15 heeft Keith Goebel via 4D_Tech 
> <[email protected]> het volgende geschreven:
> 
> For some time, on this list, there has been talk about a v16 problem where, 
> periodically, stored procedures that have been paused will not wake up. The 
> reports I’ve seen have indicated there is no way to duplicate the problem on 
> demand.
> 
> We are currently in 4D v15.2 and want to move to v16 , but the thought of 
> this happening to us is so scary that we have held off, waiting for 4D to fix 
> it.
> Today I was informed that there is no 4D registered bug for this problem.
> I was amazed, and am now wondering if we have been remiss in not upgrading to 
> v16.3.
> 
> All thoughts on this will be gratefully received.



--------------------
Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to