<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/bugs/1158">[bugs:#1158]</a> shmem : on free method shared memory segment is remove even if it's still attached</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Group:</strong> v0.45<br />
<strong>Created:</strong> Fri Oct 03, 2014 10:16 AM UTC by Antoine Villeret<br />
<strong>Last Updated:</strong> Fri Oct 03, 2014 10:16 AM UTC<br />
<strong>Owner:</strong> Cyrille Henry</p>
<p>When closing and reopening a patch using shmem, <span>[shmem]</span> doesn't work until all install have been reallocated in other process.</p>
<p>To reproduce : <br />
1. open twice instance (sender A and receiver B) of shmem-help.pd<br />
2. in A, change values in array1 and then click [me umset array1( then click [memdump array2( in B. <br />
3. array2 should display the value you enter in A's array1<br />
4. close A, then reopen it and reproduce 2. The B's array2 is no more updated.</p>
<p>If you close Pd instead of only closing the patch, and then reopen it, it works.<br />
This is because shmem_free() is not called when closing Pd without closing the patch.</p>
<p>Here is attached a patch that solves the issue.</p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/bugs">https://sourceforge.net/p/pure-data/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/bugs/options.">https://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>