Bitmaps created with CreateDIBSection seem to leak when selected into a DC

Issue #173 resolved
Daniel Bärmann
created an issue

I observed this when compiling for MacOS with Delphi Rio. See the attached sample program and observe memory usage.

A large bitmap is created and selected into a device context. After creation of the dib section memory usage increases by ~160 MB according to the section size. The DC and the dib section are then deleted but memory usage stays as high as just after creation of the dib section.

Comments (1)

  1. Log in to comment