[Qt-interest] Core dump with QLocalSocket in another thread.

Gabriel M. Beddingfield gabrbedd at gmail.com
Thu Apr 8 00:16:25 CEST 2010



On Wed, 7 Apr 2010, David Boosalis wrote:

> Thanks for the info.  I still wonder if this is a bug or nor.  Should not
> QCoreApplication check if an item is null before trying to access it ?

OK, but how will this help if the pointer is not null, but 
still invalid?  You'll still crash.

When QObject objects are deleted by their parent, they set 
the d-pointer to 0.  The 0 suggests that there's probably a 
double-delete bug in your code.

-gabriel



More information about the Qt-interest-old mailing list