Mysterious Valentina Exception

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jan 9 00:50:01 CST 2009


On 1/8/09 11:56 PM, "Matthew Jew" <mjew at icnc.com> wrote:

Hi Matthew,

> 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" );
> }
> }

You can easy make code shorter using simple define:

void DbValentinaBase::Open( FBL::I_Location_Ptr pLocation )
{
    try    
    {
        DB->put_Location( pLocation );
        DB->Open();
    }MY_CATCH
}


Btw, in MACRO you can use __func__ to automate filling of func name!


> 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?

In HEX this is 0xFFFFFFD9

Is this MAC OS or Windows?
What Valentina version?

It look like some OS error from File system, e.g. File busy or lese


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list