On Tue, Nov 17, 2015 at 4:15 AM, Roman Haefeli reduzent@gmail.com wrote:
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.
What should it say then? "packOSC is being asked to process another message before it is finished with the current one"?
It seems too complicated to allow it.
...but I'll keep thinking about it. There may be a way.
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 another patch that does the same thing by using two [packOSC]s.
Martin