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.
Type: Posts; User: Cornix
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.
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...
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...
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...