Page 1 of 1

Unhandled Exception CoreModule.Run...

Posted: 03 Jun 2009, 11:02
by alenhardt
Hello everyone,

I wrote a SourceFilter inheriting from GenericADC (it is basically a module to replay recorded BCI sessions). This module works as intended. But as i wanted to incorporate the FileWriter module it just refuses to work.
What i did was just inserting the required module in my makefile (fileio/ directory along with all the other required files). It compiles but when it starts up i get the following error:

Code: Select all

03.06.2009 17:00:30 - BCI2000 started
03.06.2009 17:00:30 - CoreModule::Run: unhandled exception class std::bad_typeid (Attempted a typeid of NULL pointer!),
terminating SignalSource module.
If I dont include the DataIOFilter.cpp/.h in the compilation process it compiles, and starts up properly but no "Storage tab" is visible.
So how do I add these storage modules correctly to an existing source module?

Best,
Alex

Posted: 05 Jun 2009, 08:09
by mellinger
Alex,

When you upgrade to the latest version of BCI2000, the error message should be gone (I added a missing null pointer check to the DataIOFilter code).
Also, I guess your source module is missing the AlignmentFilter and the TransmissionFilter -- you should consider adding the two to it.

Regards,
Juergen