Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BizObjs and COM
Message
De
13/06/2001 22:05:25
 
 
À
13/06/2001 15:08:03
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00519011
Message ID:
00519159
Vues:
16
>All,
>
>I am trying to create a COM server to run a MM Event object to populate several related tables. I have fooled the application into believing that is is running in a COM environment and can trace the code. I found that each business object is creating a separate private datasession. Why would you want each bizobj to have a separate datasession? I have changed the cDataSession property for each bizobj to CDefaultSession and now all data is in the same datasession.
>
>Just wondering...
>
>TIA
>
>Rex

A very good reason, actually. In COM worlds, you can run the same object twice, and they will share the same data session, therefore creating data clashes. That is why you need a private data session.

If the same process creates the same object twice than the data sessions are shared, but if different processes create the same object, then they run in different data environements. Does that answer your question?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform