Error 40 on opening file

Encountering this error when opening a 1Gb .dat file.

The parser recognises the file as C-Tree PLus file, and the error codes identify this as an issue with "sect * 128 (where sect is 3rd InitCTree() parameter) was larger when index was created. Buffers are too small for nodes."

I also noticed I get the same errors trying to run any of the utility programs such as ctitop.exe, ctpotp.exe etc.

Any ideas?

Hi, Further searching on the

Hi,

Further searching on the FairCom web site turned up this information at this URL:
http://c-tree.com/doc/supguide/index.htm?http://c-tree.com/doc/supguide/...

--------------------------------------------------------------------
c-tree Error 40: KSIZ_ERR

Error description:

Index node size too large. The c-tree Server was not able to open the specified index file, superfile, or variable-length data file because the page size used when creating the file is larger than the server's current page size. The page size determines the maximum supported index node size.

Possible causes:

The file was created using a larger PAGE_SIZE setting than the server is currently using. This situation can arise if the file was created by a server or a standalone c-tree utility that is configured to use a smaller page size than the server is currently using, or if after the file was created the PAGE_SIZE setting was changed and the server was restarted.

Troubleshooting steps:

To resolve this error, either:
Re-create the file (by rebuilding or compacting the file) using the page size setting currently used by the c-tree Server,
or
Change the server's PAGE_SIZE setting to ensure it is at least as large as the page size used when creating the file and restart the c-tree Server.

Note: A c-tree superfile has stricter page size requirements than a c-tree index has. A superfile can only be opened by a server whosewho's PAGE_SIZE exactly matches the page size used when creating the superfile. See the discussion of c-tree error 417 for details.
----------------------------------------------------------------

So, this sounds like a problem that needs to be solved in the application.

Please let us know if this helps!

- Jo

RE: Error 40 on opening file

Hi bmwood,

Yes, I saw that description of the C-TREE Error 40 on FairCom's web site, and noticed they didn't provide many (any!) clues about the cause or solution. I'll do some additional research and try to help you resolve the problem. More to come...

- Jo