• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unreference

 
Mike Southgate
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to trap the situation where a client crashes while holding a lock. I understand the unreferenced will do this but one needs an object that both the client and the server have a reference to. Then when the object is cleaned up on the client side the server finds out and can clean up itself. What object are people using for this. The lock method's argument and type are both long so that won't do.
ms
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike
You might want to look at the LockManager posts for a way of doing this.
An alternative might be to have one instance of Data class for every connected client.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic