Mysterious Valentina Exception
Matthew Jew
mjew at icnc.com
Sun Jan 11 16:02:10 CST 2009
Ruslan,
On Jan 11, 2009, at 1:03 PM, valentina-request at lists.macserve.net wrote:
>
> 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!
>
I will give that a try!
>
>> 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
>
Mac OS X 10.5.6,
Valentina 3.5.2
Is 0xFFFFFFD9 equivalent to -39 decimal?
If so, the mac os error -39 is
-39 eofErr End of file; no additional data in the format
- Matthew
More information about the Valentina
mailing list