[Qt-interest] The pains of debugging on Windows - Random > 'ASSERT' crash on the QList [] operator

Ross Driedger ross at earz.ca
Tue Dec 8 15:29:41 CET 2009


On Mon, 07 Dec 2009 21:32:04 -0500, <qt-interest-request at trolltech.com>  
wrote:

> Message: 5
> Date: Mon, 7 Dec 2009 21:02:45 -0500
> From: Josiah Bryan <jbryan at productiveconcepts.com>
> Subject: [Qt-interest] The pains of debugging on Windows - Random
> 	'ASSERT'	crash on the QList [] operator
> To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
> Message-ID: <4B1DB3C5.4070207 at productiveconcepts.com>
> Content-Type: text/plain;	charset="US-ASCII";	format="flowed"

> Bottom line: The program I'm using randomly crashes with an assert
> failure on the [] operator saying something about index out of range,

Hi Josiah,

Tough to say what is going on here (no code examples), but I would highly  
suggest that you use iterators instead of indexed access and check each  
iterator against the return of the end() function of the list.

That _might_ help.

-- 
"Ah, music. A magic beyond all we do here!"
J. K. Rowling, Harry Potter and the Sorcerer's Stone

Ross Driedger
ross_at_earz.ca



More information about the Qt-interest-old mailing list