Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instancing: multi-use vrs. single-use, does it work?
Message
From
14/05/2004 15:48:25
 
 
To
12/05/2004 16:54:11
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00895550
Message ID:
00904195
Views:
29
>Hey Dave,
>
>Figured out what it was. Its by design!
>
>I'm not actually using the same class, I'm doing something like this:
>
>
o1 = CreateObject("app.a")
>o1.OpenDatabase("mydbc")
>o2 = CreateObject("app.b")
>o2.OpenDatabase("myotherdbc")
>
>And it turns out that the class itself is what conforms to the single/multi-use, instead of the automation server. Christof (of course ;-) provided the info I needed:
>
>>>The single-use option refers to the class, not the automation server. If you have two classes A and B, both are single-use and you instantiate both from the same client, you only get a single EXE. However, if you had instantiated A twice, you would end up with two EXE servers.


Very interesting thing to know. I guess this must be put in the UT's FAQ section. Many people like me think that it works the way you thought.
Previous
Reply
Map
View

Click here to load this message in the networking platform