I'm trying to create a midiMessage out of some MemoryBlock :
MemoryBlock mem (5697); const MidiMessage message (&mem, mem.getSize());
but I get "BAD ACCESS" error in MidiMessage's constructor
memcpy (data, d, (size_t) dataSize); //EXC_BAD ACCESS here
The thing is that a size of 5696 works. Not over. is there any reason of such behavior in MidiMessage ?
Overall, what's the best way to send out a large sysex in your opinion (around 350K) ?