[Qt-interest] QList is crashing when detructed?
Eric Clark
eclark at ara.com
Sun Jun 28 01:20:05 CEST 2009
Thank you Thiago. Is there a way to force Qt to use my malloc (nedmalloc) without having to rebuild Qt? I have overridden the global new and delete operators. I believe the issue lies in that when Qt uses new internally, it is using malloc and then when I try to delete the object, my app uses nedfree instead of free. Not sure, but this seems to be what is causing the problem.
Thanks,
Eric
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Thiago Macieira
Sent: Saturday, June 27, 2009 5:39 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] QList is crashing when detructed?
Eric Clark wrote:
>I narrowed this bug down to nedmalloc. My application overrides the
>default malloc to use nedmalloc. If I turn off nedmalloc, this crash
>does not happen. Has anyone attempted to use nedmalloc with Qt and ran
>into issues with QLists
Make sure Qt and all Qt's dependencies (including the standard C++
library) are using nedmalloc too.
You can't use an allocator just for one part of the application. It has to be used everywhere.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
More information about the Qt-interest-old
mailing list