Canvas.SaveHandleState (e.g. in grids.pas) causes gdi.RefCount messup followed by memory leaks
Original Reporter info from Mantis: accSone
-
Reporter name:
Original Reporter info from Mantis: accSone
- Reporter name:
Description:
Canvas.SaveHandleState (e.g. in grids.pas) causes gdi.RefCount error in cocoawinapi.inc line 666:
if gdi.RefCount <> 1 then
begin
DebugLn(SName, 'Error - GDIObject: ' + DbgSName(gdi) + ' is still selected!');
Exit;
end;
Because gdi.Destroy is not called in this case memory leaks following
Steps to reproduce:
Create project with grid. Fill grid with some data.
Compile with 64bit and Cocoa widgetset.
Scroll thru grid, modify grid or edit grid cells
Mantis conversion info:
- Mantis ID: 31261
- OS: OSX
- OS Build: 10.11.6
- Build: Revision
- Platform: darwin x86_64
- Version: 1.8