
2-41
MKDE
The format of a system error is id.op.rc where:
The id corresponds to a section of code in the MKDE where the OS
call took place. There are different id ranges depending on which
MKDE is being used:
The common code base contains all the file I/O requests, variable
allocations, caching, and so on. The platform specific ranges cover
other file open, close, read, and lock requests. These codes can guide
us to the portion of the MKDE code that was executing when the
System Error occurred. For example, ids ranging from 110 - 124
correspond to the I/O Subsystem of the MicroKernel where disk I/O
calls are made, and system errors with these ids usually correspond
to file corruption problems. A list of ids is not available publicly
because a list without the specific MKDE and knowledge of the code
would not have much value.
The second piece of the system error is the operation code. This
corresponds to the Btrieve request that was being processed when the
error occurred. For example, a 5 is a GetEqual operation. Refer to the
Btrieve API Guide for more information about Btrieve operation
codes. If the system error occurs while the MKDE is performing
some task that is not specifically associated with a Btrieve operation,
the op will be set to -1.
The third piece of the system error is the OS return code. The
meaning of the values reported here varies depending on the OS call
made and the type of failure that occurred. A return code value of 0
for different IDs is likely to have different meanings, but in each case
the OS did not return an actual error code. An example of a System
Error where the OS return code is zero is when the OS call returns
Table 2-2 System Error Explanation
id Unique System Error identifier
op Btrieve operation being performed at the time
rc any unexpected return code from the operating system.
Table 2-3 System Error Code Area
100-299 Common source base
600-699 Windows 32-bit platforms
Comentarios a estos manuales