[Qt-interest] SegFaults I cannot interpret

Scott Aron Bloom Scott.Bloom at sabgroup.com
Tue Feb 24 19:40:58 CET 2009



> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Andrea Franceschini
> Sent: Tuesday, February 24, 2009 10:24 AM
> Cc: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] SegFaults I cannot interpret
> 
> 2009/2/24 Pavel Koshevoy <pavel at aragog.com>:
> 
> > Run your application under valgrind. [...]
> 
> I'll try to go through all that, it'll take all my zen calm :)
> 
> Anyway, I am actually doing some nasty things. I'm using such a thing:
> 
> QList<QList<Cursor> > _strokes;
> 
> and for example, the size() call is on the most external container
> (which contains QList<Cursor>): is there any chance this can be
> related to this? If so, is there any other way to achieve what I'm
> trying to achieve (other than using two separate lists, the "most
> external" of pointers to QList)?
> 

Anytime you start by saying Im actually doing some nasty things... your
probably doing it the wrong way :)

I would consider createing a QStroke class, that HAS a list of Cursor
postions, but has its own set/get functions AND is reentrant.

Scott




More information about the Qt-interest-old mailing list