Corruption detected on an index ... but NOT if index created within XSharp
Posted: Sun Nov 26, 2023 6:55 pm
Hi All,
I’m Converting from harbour Clipper to XSharp, Harbor dialect and am doing so in Visual Studio.
I wish I could tell you what version of XSharp I’m using, but don’t know how to tell, despite searching with Google and this forum … perhaps someone could enlighten me please
In my application is a function that performs calculations on about 10,000 people.
When I run the converted process with an active index created using the old Harbour version, after about 1400 records, I get the pop-up error widow you see an image of below.
However, if I create the index within the XSharp Windows version, the process completes calculations on all 10,000 records without error.
The Error occurs on a “file->dbskip()” statement inside a loop.
In the VS Output tab/pane, I get:
Exception thrown: 'XSharp.Internal.WrappedException' in XSharp.RT.dll
Exception thrown: 'XSharp.Error' in XSharp.RT.dll
The error pop-up (image below) indicates there was ‘corruption’ and ‘key not found’.
This is the key, it’s pretty straight forward:
BFMB->FC_MBCLIE+BFMB->FC_MBDIVI+BFMB->FC_MBGROU+BFMB->FC_MBIDEN
As always, thanks for your help.
The error pop up:
I’m Converting from harbour Clipper to XSharp, Harbor dialect and am doing so in Visual Studio.
I wish I could tell you what version of XSharp I’m using, but don’t know how to tell, despite searching with Google and this forum … perhaps someone could enlighten me please
In my application is a function that performs calculations on about 10,000 people.
When I run the converted process with an active index created using the old Harbour version, after about 1400 records, I get the pop-up error widow you see an image of below.
However, if I create the index within the XSharp Windows version, the process completes calculations on all 10,000 records without error.
The Error occurs on a “file->dbskip()” statement inside a loop.
In the VS Output tab/pane, I get:
Exception thrown: 'XSharp.Internal.WrappedException' in XSharp.RT.dll
Exception thrown: 'XSharp.Error' in XSharp.RT.dll
The error pop-up (image below) indicates there was ‘corruption’ and ‘key not found’.
This is the key, it’s pretty straight forward:
BFMB->FC_MBCLIE+BFMB->FC_MBDIVI+BFMB->FC_MBGROU+BFMB->FC_MBIDEN
As always, thanks for your help.
The error pop up: