Commonest Weakness…
[Estimated Reading Time: 4 minutes] Stefan Glienke recently added his contribution to the various solutions for implementing weak interface references in Delphi.
[Estimated Reading Time: 4 minutes] Stefan Glienke recently added his contribution to the various solutions for implementing weak interface references in Delphi.
[Estimated Reading Time: 5 minutes] Drawing this subject to a close (finally!), here’s the concluding post I promised, including the fully documented and finished implementation that has been serving me well for almost 2 years. The finished implementation incorporates a number of refinements to the core framework, and those are what we shall briefly look at in this final post.
[Estimated Reading Time: 4 minutes] So far we’ve seen a multicast event implementation in (fairly limited) action, and dissected the core of it’s implementation, which was a fairly dry affair. I also demonstrated a flaw in the initial implementation – a susceptibility to objects adding handlers to events but not removing them when being destroyed. Before the .NET crowd get all smug, we should note that the relationship between an event source and it’s listeners is potentially problematic, in .NET also. Fortunately I devised a solution to the problem in my framework. The solution – rather neatly – was itself provided by a multicast event.