Why is DbInfo(DBI_BLOB_INTEGRITY) throwing a runtime exception?

This forum is meant for questions and discussions about the X# language and tools
Post Reply
hilberg.it
Posts: 74
Joined: Sun Sep 20, 2020 7:25 am
Location: Germany

Why is DbInfo(DBI_BLOB_INTEGRITY) throwing a runtime exception?

Post by hilberg.it »

Hi,
has anyone an idea, why DbInfo(DBI_BLOB_INTEGRITY) is throwing a runtime exception "1153 Operation not supported by current RDD" in X#, but is working in VO?
Thank you.

Code: Select all

DBUSEAREA( true, 'dbfcdx', PDBReplaceExt(cFileandPathName,"DBF"), 'TEMP', DBEXCLUSIVE, DBREADWRITE )
IF !DbInfo(DBI_BLOB_INTEGRITY) // integrity NOT OK!
      lCorrupted := true
      DbInfo(DBI_BLOB_RECOVER) // function to recover the file
ENDIF
User avatar
Chris
Posts: 4599
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Why is DbInfo(DBI_BLOB_INTEGRITY) throwing a runtime exception?

Post by Chris »

This is indeed just not implemented in X# yet. I will open a ticket though, so it will be implemented in a future build!
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Why is DbInfo(DBI_BLOB_INTEGRITY) throwing a runtime exception?

Post by robert »

This checks the integrity of the "free space" indexes in the FPT file (FlexFile supports free block recycling).
We have not implemented the Free Block recycling for FPT files yet in X# (FoxPro also does not support that).

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Why is DbInfo(DBI_BLOB_INTEGRITY) throwing a runtime exception?

Post by wriedmann »

Hi Robert,
could you please increase the priority for the implementation of the free block recycling in FPT files?
This is important to save frequent reorganization processes, I think - and hopefully it is not too much work.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply