Tim,
At the following location,
www.itlnet.net/Programming/Program/Reference/c53g02c/ng3c5c4.html, There you will find a list of Clipper error code explanations. The following describes the 9001 error and the information referred to in the two links. Error 1011 may have some relevance but deals more with 16 bit Clipper code, not xHarbour or FiveWin.
9001 Database RDD failed to load
Explanation: The runtime system has failed to detect an RDD loaded
in an application that requires one.
Action: Refer to Actions and Notes under 999 and 1011. Check third
party .LIBraries for compatibility and version. Check link script and
order. Look for missing RDD .LIBrary or .OBJ files. The .EXE may be
invalid.
See Also: "Linking" and "Debugger" chapters of the Programming and
Utilities Guide.
999 Attempt to execute invalid code
Explanation: CA-Clipper has attempted to execute something that it
does not recognize as valid CA-Clipper code. This error can occur if an
attempt is made to execute code compiled with a new version of
CA-Clipper under an older version, or because of a corrupted or invalid
executable.
Action: Make sure that all code is compiled under the same version
of CA-Clipper and is being linked with the correct version of the
libraries. If a third-party linker is used, see if the error occurs
when using CA-Clipper/Exospace or Blinker. If a corrupted executable is
suspected, recompile all .OBJ files and relink
1011 Read/write access in index page failed
Explanation: CA-Clipper has attempted to read or write to an index
page. This error can occur if a the stack has become corrupted or there
is insufficient stack space. This may be due to a corrupted or invalid
.EXE.
Action: Try increasing the STACK or PROCEDURE DEPTH. Check for
memory conflicts that could cause a corruption of the index buffer. Try
disabling the EMS with the //E:0 in SET CLIPPER. If using third-party
RDDs, try increasing the stack space. If using structural indexes
(.CDX, .MDX), delete the index file and recreate. Resolve all linker
warnings and errors. Recompile all .OBJs and relink. Check all third
party RDD version compatibility.
Also, I found a thread from another user from four years ago which is old but sounds similar to your problem. It is long so I will only provide the link. Oddly, his name is also Tim but signs on with the user name ML. The responses to the 9001 error are from Mark Wilkins at Advantage R & D
delphi.newswhat.com/geoxml/forumhistorythread?groupname=Advantage.General&messageid=4140fa5d@solutions.advantagedatabase.com
Ken