Delphi Error – E2414 Disposed cannot be declared in classes with destructors

Delphi Compiler Error

E2414 Disposed cannot be declared in classes with destructors

Reason for the Error & Solution

Disposed_ cannot be declared in classes with destructors. If a class implements the IDispose interface the compiler generates a field called Disposed_ to determine whether or not the IDispose.Dispose method has already been called.