Results 1 to 2 of 2

Thread: DCOM Hangs

  1. #1
    Ron DeBerry
    Guest

    Question

    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

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    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...
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width