Hi
On line 304 of Juce_OSCAddress, it throws an exception if there are invalid characters in the address string.
Isn’t that a bit harsh ?
for (String* token = oscSymbols.begin(); token != oscSymbols.end(); ++token) if (! containsOnlyAllowedPrintableASCIIChars (*token)) throw OSCFormatError ("OSC format error: encountered characters not allowed in address string.");
return oscSymbols;
Yes we could catch this in the calling code, but if we don’t then the app will crash hard if the end user sends OSC with some strange values.
I feel a jassert and simply ignoring the message would be more appropriate.
Or ?
For me the issue is when comparing messages like this:
IncommingMessage.getAddressPattern().matches(MyThingy->getAddressPattern())