Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single instance dcom server issue
Message
From
18/04/2005 10:48:35
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01005745
Message ID:
01005785
Views:
19
Everytime you call createobject a new instance will be created. As Sergey pointed out, you can't get a reference to an existing instance.


>I'm trying to make a com server exe that for the moment will allow clients to get an instance of the running com server and tell it they are there.
>
>so my com server will be a form with a listbox of clients logged in if you like.
>
>the problem I notice is that making the server a form as an ole public class causes the clients to create far more than just a link to the running com server.
>
>I'd like to use getobject but apparently this won't work for foxpro com objects, sergey says it's a lack of monika implementation with foxpro.
>
>so I use createobject and have the server set to multi use. what I notice is that although no extra instance is created for each new client a whole new form is created, all clients will point to the active form which is the last one to be given a show()
>
>is this the case is I make my class a simple session object and then have that open just one form? will there be multiple sessions with just one active?
>
>Ken.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform