Page 1 of 1

Strange error depending on the SampleBlockSize

Posted: 17 Feb 2010, 12:28
by masa
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?

Posted: 17 Feb 2010, 13:04
by mellinger
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