Juergen,
I follow the above debug procedure with the batch file:
Code: Select all
cd ..\prog
start operat.exe
::start Refa.exe 127.0.0.1
start P3SignalProcessing.exe 127.0.0.1
start P3Speller.exe 127.0.0.1
When the operator is loaded, I switch to run the Refa module in full debug mode ( press F8 ) in the IDE until the operator waiting for loading configure parameters. I loaded the the parameter file, P3Speller_Menus.prm, and press
Set Config, and then I got the error message:
Code: Select all
22/01/2008 10:54:53 - BCI2000 started
22/01/2008 10:54:54 - Waiting for configuration ...
22/01/2008 10:54:54 - Waiting for configuration ...
22/01/2008 10:55:23 - Waiting for configuration ...
22/01/2008 10:55:35 - Operator set configuration
22/01/2008 10:55:52 - SignalSource: caught exception _STL::out_of_range (vector),
terminating module.
The Refa mudule is stop at
Code: Select all
BCIERR << "caught exception "
<< typeid( e ).name() << " (" << e.what() << "),\n"
<< "terminating module"
<< endl;
in CoreModule Run function:
Code: Select all
bool
CoreModule::Run( int inArgc, char** inArgv )
{
try
{
if( Initialize( inArgc, inArgv ) )
MainMessageLoop();
}
catch( const char* s )
{
BCIERR << s << ", terminating module"
<< endl;
}
catch( const exception& e )
{
BCIERR << "caught exception "
<< typeid( e ).name() << " (" << e.what() << "),\n"
<< "terminating module"
<< endl;
}
#ifdef __BORLANDC__
catch( const Exception& e )
{
BCIERR << "caught exception "
<< e.Message.c_str() << ",\n"
<< "terminating module"
<< endl;
}
#endif // __BORLANDC__
ShutdownSystem();
return ( bcierr__.Flushes() == 0 );
}
I also debug the TMSi module using the same procedure as for Refa moduel with the following batch file:
Code: Select all
cd ..\prog
start operat.exe
::start TMSi.exe 127.0.0.1
start P3SignalProcessing.exe 127.0.0.1
start P3Speller.exe 127.0.0.1
And got almost the same messages:
Code: Select all
22/01/2008 10:20:43 - BCI2000 started
22/01/2008 10:20:44 - Waiting for configuration ...
22/01/2008 10:20:44 - Waiting for configuration ...
22/01/2008 10:24:43 - Waiting for configuration ...
22/01/2008 10:28:02 - Operator set configuration
22/01/2008 10:28:02 - Signal Processing confirmed new parameters ...
22/01/2008 10:28:02 - Source confirmed new parameters ...
22/01/2008 10:28:02 - User Application confirmed new parameters ...
22/01/2008 10:28:19 - SignalSource: caught exception _STL::out_of_range (vector),
terminating module.
The only difference is in TMSi the rest modules confirmed the new parameters while it is not in Refa.
Even I go into the source code when the program stop, I still can not find out the exact conflict involved with. I can not find out the lines of code that have been excuted between I press Set Config and the error message being thrown.
- nanying