Assertion in MemoryOutputString


#1

Hi Jules,

In [code]bool MemoryOutputStream::write (const void* const buffer, int howMany)
{
jassert (buffer != nullptr && howMany >= 0);

[/code]

I think the assert should be

(otherwise the assert is triggered when an empty memoryblock is written to a stream – this happens for ex in juce_linux_Network.cpp)


#2

Yeah, I’m just in the middle of debugging that one myself. Goddamn linux gdb seems incapable of stopping at the correct line when there’s an assertion, which doesn’t help… grumble grumble…