Strange error depending on the SampleBlockSize

This forum deals with BCI2000 configuration issues.
Locked
masa
Posts: 1
Joined: 17 Feb 2010, 05:31

Strange error depending on the SampleBlockSize

Post by masa » 17 Feb 2010, 12:28

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?

mellinger
Posts: 1210
Joined: 12 Feb 2003, 11:06

Post by mellinger » 17 Feb 2010, 13:04

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

Locked

Who is online

Users browsing this forum: No registered users and 18 guests