A call to ALCRNG() in the c-tree client library may fail with an unhandled exception if the index number (keyno) is outside the supported range of file numbers for the connection. The logic has been modified to check for out-of-range keyno and return error BKEY_ERR (80) if the keyno is out of range.