btopen

btopen gives system error codes above 400 million during open and lock. Read the message written to stderr. Subtract 400 million from the error code. This is the error code returned by the system.

In UNIX the strerror subroutine translates the error code.

In Windows the FormatMessage subroutine translates the error code.


User Error Codes

Error Code Description
300000201 Invalid read/write flag
300000202 Invalid lock flag (UNIX)
300000203 Out of memory
300000204 Error reading btree header.
300000205 File is not a btree database.
300000206 Out of memory
300000207 Out of memory
300000208 Out of memory
300000209 Out of memory

Each of the out of memory errors is for a different block of memory.

The correct values for the parameters to btopen are described in Btree Subroutines.