Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,198

    Re: Good practice to detect lapsed observers

    Yes I have used WeakReferences, useful in this context as well as in caches. I didn't comment in the other thread you posted, but recall looking through it and had no problems. You could test it by...
  2. Replies
    6
    Views
    1,198

    Re: Good practice to detect lapsed observers

    It's a problem that has been solved before using WeakReferences. Agree that directly removing references when they no longer need to listen seems cleaner, but the more complex the architecture the...
  3. Replies
    6
    Views
    1,198

    Re: Good practice to detect lapsed observers

    How about using a WeakReference (I believe you had a post about this a while back?)
Results 1 to 3 of 3