[PD] [packOSC] reentrancy problem

Martin Peach chakekatzil at gmail.com
Mon Nov 16 21:25:27 CET 2015

So I updated packOSC in svn to detect reentrancy and post a message.
It seems too complicated to allow it.
Here's a patch that does what I believe you want using the preferred method
of bundles.


On Fri, Nov 6, 2015 at 4:53 AM, Roman Haefeli <reduzent at gmail.com> wrote:

> On Thu, 2015-11-05 at 16:23 -0500, Martin Peach wrote:
> > As I see it, the only way that [packOSC] can receive a message before
> > it has completed the previous message is if its own output triggers
> > another message to its input. It may be possible to detect that
> > special case and either let it happen or not, but it's tricky because
> > the buffer for the list is deallocated as soon as the list is output,
> > and the new message arrives while that is taking place. Possibly using
> > a fixed buffer would work better, and also speed up the code. The
> > function then might just exit before it is called again, avoiding the
> > error.
> If you're trying a fix, I'm happy to test it (Sorry for not being
> helpful, my C skills... )
> Roman
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151116/63638384/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: packOSC-without-reentrancy.pd
Type: text/x-puredata
Size: 772 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151116/63638384/attachment.bin>

More information about the Pd-list mailing list