[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] How to read/write in QSharedMemory
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-07-29 19:42:26
Message-ID: 36c143ad6df0ae5d9b3dafe42e852794 () localhost
[Download RAW message or body]

On Wed, 29 Jul 2009 14:01:38 +0200, TGS France Alexandre
<alexandre.raczynski@technogerma.fr> wrote:
> Thanks for the quick answer. I am using Python 3.0.1 and buffer has been 
> replaced by memoryview.
> Anyway it works fine to access QBuffer internal data but it crashes when 
> attempting to access QSharedMemory data.
> 
> Here is the piece of code that crash:
> 
> 
> from PyQt4 import QtCore
> sharedMemory = QtCore.QSharedMemory('key')
> sharedMemory.create(256)
> sharedMemory.lock()
> view = memoryview(sharedMemory.data()) # CRASH!

Should be fixed in tonight's SIP snapshot.

Thanks,
Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic