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

Ori Lahav vbcrlf at gmail.com
Fri Jul 2 01:05:37 CEST 2010


Thanks Pavel, Jason and Paul and everyone who helped me in #qt. I found the
mistake in my code by reimplementing the QApplication::notify method and
recorded the last event. Then when I got a bad_alloc I checked which object
got it and found the problem easily!

Ori.

On Fri, Jul 2, 2010 at 1:26 AM, Pavel Koshevoy <pavel at aragog.com> wrote:

>  On 7/1/2010 4:18 PM, Ori Lahav wrote:
>
> 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
>>
>>
>>
> What was the stack trace when you hit the __raise_exception breakpoint?
>
>     Pavel
>
>
> _______________________________________________
> 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/132e2283/attachment.html 


More information about the Qt-interest-old mailing list