Search:

Type: Posts; User: Cornix

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    1,199

    Re: Good practice to detect lapsed observers

    Thank you for the advice, I will see what I can do.
    by the way, I guess it doesnt hurt to have the finalize method log information as well, just for good measure.
  2. Replies
    6
    Views
    1,199

    Re: Good practice to detect lapsed observers

    Do you have any personal experience with weak references? Because I dont and I dont know if the code I posted in the other thread is actually correct.
    The problem is that its very hard to test...
  3. Replies
    6
    Views
    1,199

    Re: Good practice to detect lapsed observers

    It solves the problem of leaking memory, but it is not as clean as simply removing the observers when they are not needed anymore. I would prefer it to have my objects clean up after them instead of...
  4. Replies
    6
    Views
    1,199

    Good practice to detect lapsed observers

    Hi there.

    I am working a lot with the observer pattern in my current application. Each object is, on average, observing 3 other objects. And I fear that maybe sometimes I might miss to correctly...
Results 1 to 4 of 4