Hi Sergey,
I have resolved.
On VFP any object is bind to one datasession, only prg procedure are
free datasession.
If you call a method of a object "objectA",
VFP, before enter on objectA.method ,
change current datasession to the datasession of "objectA",
after return by objectA.method, VFP restore the datasession
of the caller.
I implement a timer for processing a queue of jobs.
I cannot implement a "free datasession timer".
I need one timer for any datasession,
or pass caller datasession, set it, work, restore timer datasession,
but with this last solution i have found problems.
Example:
define class MyCustom as custom
procedure procCalled
? SET("DATASESSION")
enddefine
- on default datasession, x=CREATEOBJECT("MyCustom")
- do a form with "private datasession"
- by form click() call x.procCalled
On VFP help is not clear if a object, created with CREATEOBJECT()
is a neutral/free datasession or a bind datasession.
I don't try any combination, for now i known this.
Fabio