Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ProcessId and ThreadId
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00568380
Message ID:
00568482
Vues:
14
Hi!
If your server is out-of-process (EXE) then try to set instancing to "Single Use". "Multi Use" instancing means that other applications can use the same instance of your object and will share the same thread of execution.

>Does anyone know why ThreadId is the same for all the instances of a multithreaded object? I can see why ProcessId is the same, but I would think that ThreadId would be different for each instance. If not then how does VFP or the OS track each thread's object properties? There must be some unique handle.
>
>The object is compiled as Multithreaded/MultiUse OLEPUBLIC. I then display the Application.ThreadId for each instance after I do a createObject().
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform