Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BizObjs and COM
Message
From
13/06/2001 22:05:25
 
 
To
13/06/2001 15:08:03
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00519011
Message ID:
00519159
Views:
15
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform