On 6/8/06, <b class="gmail_sendername">IOhannes m zmoelnig</b> <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> 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>> On 6/7/06, *chris clepper* <<a href="mailto:cgclepper@gmail.com">cgclepper@gmail.com</a><br>> <mailto:<a href="mailto:cgclepper@gmail.com">cgclepper@gmail.com</a>>> wrote:<br>>
<br>><br>> Finally, after setting up one shm buffer at an address I can no longer<br>> create one at any other address. I get this message:<br>><br>> pix_share_*: 2048x768x2: 3145728<br>> error: pix_share_*: couldn't get shm_id: error 12
<br>><br>><br>> pix_share_write might not be releasing the shm object correctly or at<br>> 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 "shmdt(h);" below the "m_size=h->size;" below the<br>"somebody was faster" warning.</blockquote><div><br>
Thanks. 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;">> I could only get one set up for a ~2.5MB buffer without rebooting<br>> to free up more. OSX might have changed the shmmax defaults to 4MB
<br>> total in a recent update as well. I put it to 8MB and can now use a<br>> 1024x768x4 buffer after a fresh reboot although changing it to one<br>> 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'?
<br>
</div><br></div>cgc<br>