<div dir="ltr">On Windows 10 with Python 3.6.2 and PyQt5==5.9 from PyPI I get the same traceback when I select an image.<div><br></div><div><br></div><div><font face="monospace, monospace">examples\ipc\sharedmemory> python sharedmemory.py<br></font></div><div><div><font face="monospace, monospace">Traceback (most recent call last):</font></div><div><font face="monospace, monospace">  File "sharedmemory.py", line 132, in loadFromFile</font></div><div><font face="monospace, monospace">    self.sharedMemory.data()[:] = buf.data().data()</font></div><div><font face="monospace, monospace">ValueError: cannot modify the size of a sip.voidptr object</font></div></div><div><br></div><div>On Linux with Python 3.5.2 the example works properly.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 1, 2017 at 11:19 PM, Wallboy <span dir="ltr"><<a href="mailto:wallboy@wallboy.ca" target="_blank">wallboy@wallboy.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to use shared memory in my application I'm writing and I'm trying to<br>
get the QSharedMemory example working, but I'm crashing on the following<br>
line:<br>
<br>
self.sharedMemory.data()[:] = buf.data().data()<br>
<br>
Event viewer is showing the faulting application as python.exe and the<br>
faulting module as ucrtbase.dll<br>
<br>
Also in the example a few lines above the crashing line is this: size =<br>
min(self.sharedMemory.size(), size) which doesn't seem to be used anywhere.<br>
<br>
I'm using Python 3.5 and a custom build of PyQt5.9/Qt5.9. I also tried to<br>
run the example on a older official 5.8 wheels version, but get the same<br>
crash, so I'm pretty sure it's not related to my custom build<br>
<br>
Just wondering if this is happening on my end only, or if there is a problem<br>
with the example?<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://python.6.x6.nabble.com/PyQt-f1792048.html" rel="noreferrer" target="_blank">http://python.6.x6.nabble.com/<wbr>PyQt-f1792048.html</a><br>
______________________________<wbr>_________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.<wbr>riverbankcomputing.com/<wbr>mailman/listinfo/pyqt</a></blockquote></div><br></div>