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.

Martin

On Fri, Nov 6, 2015 at 4:53 AM, Roman Haefeli <reduzent@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@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list