[Qt-interest] Qt-interest Digest, Vol 13, Issue 160

Ross Driedger ross at earz.ca
Wed Dec 16 15:20:08 CET 2009


On Wed, 16 Dec 2009 04:36:17 -0500, <qt-interest-request at trolltech.com>  
wrote:

> Message: 1
> Date: Tue, 15 Dec 2009 23:24:33 -0800 (PST)
> From: navid navid <n_nnavid at yahoo.com>
> Subject: [Qt-interest] safety in QList<CustomStruct> handling
> To: qt-interest at trolltech.com
> Message-ID: <372064.41865.qm at web65607.mail.ac4.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
> Hello,
> Is it safe to send a local qlist of local variables (with struct type)  
> which will destroyed soon via emit signalSendVar(QList<CustomStruct>) or  
> emit signalSendVar(CustomStruct) ?
> I some times in debugging run (F5) receive segmentation fault. But in  
> normal run (Ctrl+R) , it seems every thing is good.
> May it be related to debugging codes added to app by qt?

Navid,

The Qt documentation on thread-safety and reentrancy might give you some  
help (sorry -- don't have the link handy).  QList is reentrant which  
doesn't mean it is thread-safe.

-- 
"Without music to decorate it, time is just a bunch of boring production  
deadlines or dates by which bills must be paid."
Frank Zappa

Ross Driedger
ross_at_earz.ca



More information about the Qt-interest-old mailing list