[Qt-interest] bad_alloc: Can't find what is causing it
Ori Lahav
vbcrlf at gmail.com
Fri Jul 2 00:18:21 CEST 2010
Yes.
On Fri, Jul 2, 2010 at 1:07 AM, Pavel Koshevoy <pavel at aragog.com> wrote:
> 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> 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
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> _______________________________________________
> Qt-interest mailing list
> 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/20100702/63a24781/attachment.html
More information about the Qt-interest-old
mailing list