Mini 2.0 : 9E6 samples cause crash inside LMS_RecvStream

Hello,

I’m using the singleRX.cpp sample code.
The following code spcifies the data size:

//Data buffers
const int buffersize = 10000; //complex samples per buffer
float buffer[buffersize * 2]; //must hold I+Q values of each sample
//Start streaming
LMS_StartStream(&streamId);
...
int samplesRead = LMS_RecvStream(&streamId, buffer, buffersize, NULL, 1000);

Instead of 10000 complex samples I tried 4E6 samples.

This scenario cause a crash inside LMS_RecvStream.

Is there any limit on number of samples ?

When I changed to 2E6 it worked fine.

Instead of calling once to LMS_RecvStream I called it several times till I got 9E6 samples.

Each time I read 0x40000 samples (262144)

Is this the right solution ?

Thank you,

Zvi