Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi 7 and DCOM

Status
Not open for further replies.

Bias

Programmer
Sep 19, 2002
4
SE
Hi. Have been working on a project for a couple of weeks building a server/client application. I have some issues with DCOM that i hope someone out there could help me with. The thing is that creating a server object via automation object works fine and so on. Here comes the but, ... when i am using the dcom object in my client i have to use server.disconnect after each call to the object, or else i get an windows error on the server stating that "There are still active COM objects in this application. One or more clients may have references to these objects... etc". By closing the object and reloading it each time i need to use it, it tends to be very slow and could take 10 or more seconds to connect. This is not acceptable and i just need to know what i am doing wrong or if its supposed to be that way? Any workarounds? Please give me some pointers and examples on how to do it correct. I have some experience in Delphi coding but not on this level.

Thanks in advance.

Regards,
Bias
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top