On 6/8/06, <b class="gmail_sendername">IOhannes m zmoelnig</b> &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
chris clepper wrote:<br>&gt; On 6/7/06, *chris clepper* &lt;<a href="mailto:cgclepper@gmail.com">cgclepper@gmail.com</a><br>&gt; &lt;mailto:<a href="mailto:cgclepper@gmail.com">cgclepper@gmail.com</a>&gt;&gt; wrote:<br>&gt;
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Finally, after setting up one shm buffer at an address I can no longer<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; create one at any other address.&nbsp;&nbsp;I get this message:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; pix_share_*: 2048x768x2: 3145728<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; error: pix_share_*: couldn't get shm_id: error 12
<br>&gt;<br>&gt;<br>&gt; pix_share_write might not be releasing the shm object correctly or at<br>&gt; all.<br><br>you are right. in the process of detecting how big an already segment is<br>attached a memory segment and did not properly release it anymore.
<br><br>i have checked in a fix for this.<br><br>actually it is just an &quot;shmdt(h);&quot; below the &quot;m_size=h-&gt;size;&quot; below the<br>&quot;somebody was faster&quot; warning.</blockquote><div><br>
Thanks.&nbsp; I'll give it a test in a bit. <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; I could only get one set up for a ~2.5MB buffer without rebooting<br>&gt; to free up more.&nbsp;&nbsp;OSX might have changed the shmmax defaults to 4MB
<br>&gt; total in a recent update as well.&nbsp;&nbsp;I put it to 8MB and can now use a<br>&gt; 1024x768x4 buffer after a fresh reboot although changing it to one<br>&gt; double that size using the set message fails.<br><br>note that you can only resize the buffer to something larger if nothing
<br>refers to this segment any more.</blockquote><div><br>
Ok, I might have missed that in my testing by keeping a pix_share_read
open in another instance of Pd or I could have not removed the object
properly (sometimes I just crtl-c or kill Pd).<br>
<br>
Would it be possible to have message that said something like 'Cannot
resize buffer because it is in use by another pix_share_ object'?&nbsp;
<br>
</div><br></div>cgc<br>