Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multithreading?
Message
From
09/10/2003 08:47:13
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
09/10/2003 08:33:23
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00836137
Message ID:
00836764
Views:
19
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
Map
View

Click here to load this message in the networking platform