While trying to run a kdbfchk on a table I got this error..
011 Can't alloc 1048 bytes of memory: Not enough space in the function ramdbf:newb
006 Could not write new page for B-tree (temp RAM DBF) in the function btgetnewpage
006 Can't create new page in B-tree (temp RAM DBF) in the function [fbt]insert
006 Can't add free block to internal tree in the function add_free_block
Any idea as to the cause. I have never seen this before.
It means kdbfchk is out of memory for one of its internal trees used for tracking the free list. The free list was probably too large to fix. If the file is known to be damaged (ie. you're not just checking it), use the -q option (with the -O option) to do a quick tail fix instead. This is less effective but does not need to scan the free tree.
There was a recent fix that affected memory allocation in kdbfchk, but I'm not sure it would apply when the -q option is used. Contact tech support at Thunderstone to see if an upgrade is available.