Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multithreading?
Message
De
09/10/2003 08:47:13
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
09/10/2003 08:33:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00836137
Message ID:
00836764
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform