[PyQt] How to read/write in QSharedMemory
TGS France Alexandre
alexandre.raczynski at technogerma.fr
Wed Jul 29 13:01:38 BST 2009
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!
Regards,
Alexandre.
More information about the PyQt
mailing list