Delphi – Using FastMM4 part 2: TDataModule descendants exposing interfaces, or the introduction of a TInterfacedDataModule
The Wiert Corner – One of the larger projects I’ve becoming involved in, uses a pattern that uses TDataModule descendants exposing interfaces. Interfaces in Delphi are nice: if used properly, you have reference counting that will automatically free the underlying objects if there are no references left to them. When you do not do interfaces in Delphi properly, you are bound to have a lot of memory leaks, and this is one of the cases where we did. The client choose to do testing and QA very late in the product cycle, and we choose to use FastMM to do memory debugging. Lo and behold: a truckload of memory ...
Visits by Source
Users who voted for this posting