Hi.
I'm writing my own data acquisition module.
It started working but I have a strange problem when I set some numbers as the SampleBlockSize.
For example, when I set SampleBlockSize=6, I receive the following error:
Assertion failed: !( mpString && mpParam ), file..\..\..\shared\types\Param.cpp, line 581
Is there any restrictions to select SampleBlockSize in BCI2000?
Strange error depending on the SampleBlockSize
Hi,
BCI2000 does not pose any restriction on the value of the SampleBlockSize parameter.
Also, the failed assertion is functionally unrelated to sample block size.
Chances are that your code writes past the end of allocated memory, and into memory allocated to hold BCI2000 parameters, causing the assertion to fail. If you are using Borland C++ builder, you might use CodeGuard to detect such a problem. To activate CodeGuard, right-click your project in the Borland IDE, choose "Options...", and go to the "CodeGuard" tab. There, activate all check boxes, click "OK", recompile and run your source module in the debugger (comment out the source module entry in the batch file, run the batch file until the operator comes up, then change to the IDE and start the source module pressing F9).
HTH,
Juergen
BCI2000 does not pose any restriction on the value of the SampleBlockSize parameter.
Also, the failed assertion is functionally unrelated to sample block size.
Chances are that your code writes past the end of allocated memory, and into memory allocated to hold BCI2000 parameters, causing the assertion to fail. If you are using Borland C++ builder, you might use CodeGuard to detect such a problem. To activate CodeGuard, right-click your project in the Borland IDE, choose "Options...", and go to the "CodeGuard" tab. There, activate all check boxes, click "OK", recompile and run your source module in the debugger (comment out the source module entry in the batch file, run the batch file until the operator comes up, then change to the IDE and start the source module pressing F9).
HTH,
Juergen
Who is online
Users browsing this forum: No registered users and 18 guests