[Lazarus] exception handling in constructor

Howard Page-Clark hdpc at talktalk.net
Sat Mar 2 13:03:23 CET 2013


On 02/03/13 10:51, Michael Van Canneyt wrote:

> This will definitely cause a memory leak, because the FPC code does not
> know that an exception occurred in the constructor (you catch it with
> Except), and hence will not call the destructor.

Thanks for the correction and explanation.

Howard





More information about the Lazarus mailing list