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