Original Post
When I try to compile code I recieve that: [Error] DirectX.pas(101): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Error] DirectX.pas(103): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Error] DirectX.pas(108): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Error] DirectX.pas(110): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Error] DirectX.pas(124): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Error] DirectX.pas(247): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Error] DirectX.pas(249): Type 'IDirectDrawSurface' needs finalization - not allowed in variant record [Fatal Error] DXClass.pas(6): Could not compile used unit 'DirectX.pas' Where's the problem? Can anybody help me fix it? In tutorial that is not writen.