On 03/23/2014 10:56 PM, Steve Fink wrote:
Anyway, with your specific example, it seems to me that the problem is that you're losing information. The popups need the main window to communicate with each other, and the main window needs all of its stuff to work while it's open. The solution, then, seems like it would be to decouple the communication mechanism from the main window. If the object graph representing the communication mechanism were separated out from the rest of the main window, so that there are no outgoing edges from the communication piece to the rest of the main window, then you wouldn't need weak refs.
Right! Please add this to my list as acceptable solution class 0): restructure your graph so that the GC edges actually reflect the ownership relations you need.
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform