Mysterious Valentina Exception
Matthew Jew
mjew at icnc.com
Thu Jan 8 15:56:24 CST 2009
Ruslan,
In a previous debugging discussion, you suggested I use a routine to
help debug Valentina exceptions.
So in my open method, I have this:
void DbValentinaBase::Open( FBL::I_Location_Ptr pLocation )
{
try
{
DB->put_Location( pLocation );
DB->Open();
}
catch( FBL::xException& Err )
{
ProceedException( Err, "DbValentinaBase::Open" );
}
}
and ProceedException is this:
void ProceedException( FBL::xException& Err, char * errLocationString )
{
FBL::String Msg( Err.get_ErrorString() );
std::cout << "Valentina exception caught in " <<
errLocationString << ": \n";
std::cout << "\tError code : " << Err.get_ErrorCode()
<< "\n";
std::cout << "\tError description: " << Msg.getBufferA() <<
"\n";
}
Recently, I have been seeing this debug message:
Valentina exception caught in DbValentinaBase::Open:
Error code : 4294967257
Error description:
I usually get a sensible error code and some sort of message.
This one puzzles me, though.
What do you make of it?
- Matthew
More information about the Valentina
mailing list