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

Pavel Koshevoy pavel at aragog.com
Fri Jul 2 00:07:36 CEST 2010


On 7/1/2010 4:03 PM, Ori Lahav wrote:
> Hey,
> I've tried to use GDB, but it doesn't give any additional useful 
> information.
>

What have you tried in gdb?
Did you set a breakpoint on |__raise_exception|?

     Pavel

> Ori.
>
> On Fri, Jul 2, 2010 at 12:49 AM, Pavel Koshevoy <pavel at aragog.com 
> <mailto:pavel at aragog.com>> 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 at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>

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


More information about the Qt-interest-old mailing list