qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] bad_alloc: Can't find what is causing it

Subject: Re: [Qt-interest] bad_alloc: Can't find what is causing it
From: Pavel Koshevoy
Date: Thu, 01 Jul 2010 15:49:38 -0600
On 7/1/2010 3:42 PM, Ori Lahav wrote:
I can't find the problem by reading the code. I tried Valgrind, but except for the message QT shows:
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
It doesn't show any problem.


Have you tried setting a breakpoint on exception throw in gdb?

According to http://www.delorie.com/gnu/docs/gdb/gdb_31.html
You should be able to put a breakpoint at __raise_exception

    Pavel.

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest
<Prev in Thread] Current Thread [Next in Thread>