I disappointed. I'll try do something with timer. Do you know will VFP9 support real multithreading.
I try this sample which you did. I understand mean that do what I needed (Client application don't wait for process). But that give an error at
"loContext.SetComplete()" line. about that not an object.
rr=CREATEOBJECT("math")
rr.multiple(2,4)
DEFINE CLASS Math AS SESSION OLEPUBLIC
FUNCTION Multiple(tnNum1, tnNum2)
LOCAL lnResult, loMtx, loContext
* Create a reference to the MTS object
loMtx = CREATEOBJECT("MTXAS.APPSERVER.1")
* Create a reference to the Context object
loContext = loMtx.GetObjectContext()
lnResult = tnNum1 * tnNum2
* Commit the transaction if there is one and
* tell MTS that we're done using the component
loContext.SetComplete()
RETURN lnResult
ENDFUNC
ENDDEFINE
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only