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: Ori Lahav
Date: Fri, 2 Jul 2010 01:03:27 +0300
Hey,
I've tried to use GDB, but it doesn't give any additional useful information.

Ori.

On Fri, Jul 2, 2010 at 12:49 AM, Pavel Koshevoy <pavel@xxxxxxxxxx> wrote:
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


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