Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM+ server
Message
From
06/09/2004 04:56:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM+ server
Miscellaneous
Thread ID:
00939679
Message ID:
00939679
Views:
71
I have created a COM+ server:
define class TestServer as custom olepublic
   myProp = 12

   procedure SetProp(lnProp)
      this.myProp = lnProp
   endproc

   procedure GetProp()

   return this.myProp
   endproc
endefine
I have built my server as MTDLL, Multi Use.

On the server, I ran:
lobj = newobject("TestServer.TestServer")
lobj.SetProp(20)
?lobj.GetProp() && 20
On the client, at the same time:
lobj = newobject("TestServer.TestServer")
?lobj.GetProp() && 12, not 20
My question: why I don't get the same value on the client as on server? In MSDN is writting that MTDLL creates only one instance on server. What I did wrong?

Florin
TIA
Next
Reply
Map
View

Click here to load this message in the networking platform