General information
Category:
The Mere Mortals Framework
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only