Page 1 of 1

NullFileWriter not working.

Posted: 17 Apr 2014, 15:06
by boulay
In DataIOFilter.cpp, the parameter FileFormat string value is converted to upper then compared against the list of available FileWriters. The problem is that the NullFileWriter is not NULLFileWriter.
I added 2 lines of code to DataIOFilter.cpp and it works again. Maybe the better solution is to require all FileWriters to be upper-case?

Just below these two lines

Code: Select all

if( fileFormat == "DAT" )
      fileFormat = "BCI2000";
add

Code: Select all

if( fileFormat == "NULL" )
      fileFormat = "Null";