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

Pavel Koshevoy pavel at aragog.com
Thu Jul 1 23:49:38 CEST 2010


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.

|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100701/df8ca87c/attachment.html 


More information about the Qt-interest-old mailing list