Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instancing: multi-use vrs. single-use, does it work?
Message
From
12/05/2004 16:54:11
 
 
To
16/04/2004 18:01:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00895550
Message ID:
00903365
Views:
26
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform