PDA

Click to See Complete Forum and Search --> : DCOM Hangs


Ron DeBerry
Mar 14th, 2001, 10:10 AM
I have a DCOM service running that allows remote clients to declare the object With Events. I use CreateObject (Servername, classname). I raise events from the server to the clients. All works well in a connected setup. I put the server in a loop raising events and averaged 1400/sec to the clients. The problem is that when I disconnect a client by abrupt termination (pulled network cable or turn machine off), my server slows to about 1 event per minute. If I plug the computer back in, events will resume normal speed in 10-15 seconds. I tried looking for a timeout period setting. The best I could find was something about a 10-minute period. Ouch. Am I correct in assuming that DCOM has a reference count of that disconnected client and it is trying to complete the raisevent? To me this is a major flaw with DCOM, so I assume I must be doing something wrong! I should point out that each of the remote clients is passed the same reference to the server object. Would using callbacks solve it?

Thanks

crispin
Mar 15th, 2001, 07:13 AM
DCOM does keep a reference count, although if you disconnect from the object (be it via hardware failure or whatever) then the Delta Ping that gets sent out (how often i'm not sure - id have to check) should fail, and the object should decrement the refcount to zero immediately, and release (terminate) the object...