Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Here's an interesting MTDLL / datasession tidbit
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00688424
Message ID:
00688719
Vues:
26
Hi Mark,

>Given an OLEPUBLIC class within an MTDLL, can more than one instance of that class exist on the _same_ thread?<

Yes, that is possible. For instance, you could create within the same ASP page two instances of this particular class. Due to the threading model, however, Windows serializes calls to those components. That means, while a method in object A is running, only another object on the same thread can call a method of any object. Any other thread can only call any object on this thread when the method in object A has returned.

Theoretically, while your method is running, no-one could do anything else with the thread. The big exception though is that VFP might process windows events (DOEVENTS) which also would execute a pending call.

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform