The Delphi language shares with many others a standard resource allocation pattern to make sure that in case of an
exception the resources is properly released. Resources in this context are memory objects, files, operating system objects and handles, and the like. In Delphi, compared to other languages with a garbage collector, the relevance increased by memory management considerations.
Protecting a Single Object
In the most simple cases, you'd write code like:
allocate
Weiterlesen...