[Qt-creator] QList and QStringList, or qDebug() odd Behaviour?
André Pönitz
andre.poenitz at nokia.com
Wed Mar 24 08:02:01 CET 2010
On Wednesday 24 March 2010 01:21:12 ext Victor Sardina wrote:
> Guys:
>
> The program works as expected in Debug mode, but it bombs at the end
> when running in Release mode...It quits with the message "The program
> has unexpectedly finished.", and the reports from the system says:
>
> Exception Type: EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff5fbffb75
> Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Unless you post minimal but compilable code it's really just poking
in the dark for anyone trying to help you.
> I started to consider going back to "non-dynamic-memory-allocation" mode...
The problem is not dynamically allocating something but in this case the
question is really why you started to dynamically allocating a QStringList?
It does not really make sense in most cases and comes at additional cost.
Andre'
More information about the Qt-creator-old
mailing list