I am writing some software for my classes using the AutoDiscovery
Class. I have a master application that I would like to have keep
track of everyone registered in the current group.
Here is what I am doing. I create a subclass of the AutoDiscovery
class in my project, filling in some of the events and adding some
specialized methods and properties. In the open event of each
application's main window, I have something like
theAD = new MyAD
theAD.Bind(51234)
theAD.Register("MyGroup")
In the CancelClose event of the main window, I have
theAD.Unregister("MyGroup")
so that if the application quits, it unregisters from the group (the
window cannot be closed while the application is running, so this
will only happen if the application quits).
In the MemberJoined and MemberLeft events of the subclass in the
master application, I generate a display of who is in the group using
theAD.GetMemberList function, so I can see who is in the group.
The display properly updates when members join. The problem is that
it does not register members leaving. If I quit one of the client
programs, it properly triggers the MemberLeft event of the master
application, but the member who quit remains in the GetMemberList,
even if ask for the list many seconds after the member program has quit.
Any insight as to why this might be so? Thanks for any help!
Tom Moore
-------------------------------------------------------------
This message has been scanned by Postini anti-virus software.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>