P.S. I forgot to say that I did see something weird, but it might have just
been me. I've got cooperative and preemptive workers available in my
scratch database and tried doing GET PROCESS VARIABLE against each. I
wanted to make sure the code worked at all, particularly since I don't use
these commands. During this process, I noticed a case where I did a GET
PROCESS VARIABLE pulling data from a cooperative worker and, sure enough, I
got the value. What was weird was *I got the same value* when making a
subsequent call for that instance of that variable from a *preemptive*
worker. If my finding is correct, I got absolutely the wrong copy of the
variable. I rewrote the test to try for a completely different variable and
got the empty result I had seen before.

So, if you do use the Tools of Satan in your code and plan to use some
preemptive code, you might want to dig into these details closely. Or,
better, dump that stuff and rewrite your code to use the more modern
features. Or, simplest of all, just use cooperative threads and ignore the
whole subject.
**********************************************************************
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