Error reading .ncs files

Hi,
I'm trying to open a *.ncs file and i receive an error ( attached ).
data were acquired with Neuralynx hardware, and i'm able to open other ncs files, just not this one. ( the file can be loaded via other platforms, just not with brainstorm)
I was wondering maybe you can help me?
Best,
Sep!
Error|436x288

There was an issue with the posting of the screen capture, I can't get it.
Can you please post the error message again?

Ow. i don't know why it's not being uploaded.
Error

in case this is not uploaded, it says :
Line 98: in_fopen_neuralynx (line 98)
There are some missing blocks of recording in file: mAHL1_0003.ncs

I wrote this reader based on one or two example files, and it is probably not robust enough to handle all the possible file formats. Here there is a field indicating the duration of the dataset that is missing, but maybe there is some other information in the file that could be used instead.

Could you share an example file, so I can have a closer look at this?
(pick or save a file as small as possible that can't be opened in Brainstorm, upload it somewhere and copy the download link here)
Thanks

I see.
you can find an example here :
https://yadi.sk/d/6mJ53m6Ekb5KSQ
Please let me know if you need anything else.
Best

Thanks for the example file.

The problem that is detected is a mismatch between the file size and the number of recorded blocks of data in the file. Your file is longer than what it claims in its header, I don't know what this means, maybe some problem before the end of the acquisition?
I replaced the erros with a warning (that shows in the Matlab command window) and truncated the file to the number of records declared in the file. This is done in this commit:
https://github.com/brainstorm-tools/brainstorm3/commit/eed097dab1365f024d5ee88f262eb23632a41591

Please update Brainstorm and try again.
Let me know if you think a lot of your data is missing at the end.

Everything seems to be working very well, Thank you!