[Development] QtCore missing check for memory allocation

Alex Montgomery apmontgomery at gmail.com
Mon Mar 9 18:55:56 CET 2015

On Mon, Mar 9, 2015 at 12:57 AM, Knoll Lars <Lars.Knoll at theqtcompany.com> wrote:

> Yes, the best solution IMO is still to use your own malloc and operator
> new replacements. In addition, OOM handlers on the OS level can help.

Except that dynamically linked Windows Qt applications (read: most)
don't work this way, so Windows users are left out in the cold. DLLs
do not allow you to simply replace one new operator across link
boundaries. See the comments in this Qt bug:

Is there any strategy for the large body of Qt developers targeting
Windows, or is statically linking the only supported method for
replacing Qt allocators on Windows?

More information about the Development mailing list