i've written a simple method for filling a buffer with MUs and then, with the entrance locked, emptying it without any further entrance until it is fully empty.
Unfortunately the method is working for the first part of filling the buffer but not in emptying it (see the files attached).
Anybody help for what is missing?
Go to Solution.
two changes: @ ist only one part, to access the parts in the buffer use ?.cont.
If you move within a loop, you need to wait a little timespan, so the drain can process the parts.
waituntil ?.Full = true prio 1;
?.EntranceLocked := true;
for local i := 1 to ?.NumMU loop
?.EntranceLocked := false;
If the response to your question is satisfactory, please do not forget to ‘Accept’ the solution.
Your Forum Administrator