Hey, thanks for addressing the issue.
On Mon, 2015-11-16 at 15:25 -0500, Martin Peach wrote:
So I updated packOSC in svn to detect reentrancy and post a message.
The message says: error: packOSC: Use bundle to send multiple messages
I find this message a bit misleading as I'm not at all trying to create a bundle. I'm simply creating an OSC packet that in returns triggers another OSC packet to be generated. I expect [packOSC] to treat them absolutely separately.
It seems too complicated to allow it.
I see. It's not complicated at all on a patch level to make [packOSC] allow reentrancy. See attached patch. I can live easily without it being fixed in [packOSC].
And this is the _expected_ output from my previous patch (and it actually _is_ the output of the currently attached patch with the work-around):
FIRST: /i/am/reentrant 64 SECOND: now
Here's a patch that does what I believe you want using the preferred method of bundles.
That's not quite what I want. I don't mean to create a bundle. For certain reasons it's hard to avoid reentrancy in the framework I'm working on, but buffering the output of [packOSC] as shown in the attached patch works.
Roman