Delphi Error – E2290 Cannot mix destructors with IDisposable

Delphi Compiler Error

E2290 Cannot mix destructors with IDisposable

Reason for the Error & Solution

The compiler will generate IDisposable support for a class that declares a destructor override named “Destroy”. You cannot manually implement IDisposable and implement a destructor on the same class.