Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

Enforce Maximum Disk Read/Write Sizes on Windows

A large variable-length record write operation could fail with Windows error 1450 ("Insufficient system resources exist to complete the requested service") when the data file resided on a network drive. c-tree normally writes the record in a single call to the WriteFile() Win32 API function. To avoid this error, c-tree supports setting a maximum disk read and write size. Read or write operations that exceed this size are performed as a series of reads or writes of the specified maximum size.

To set a maximum disk read and write size, compile c-tree with #define ctMAX_IO_SIZE <maxbytes>, where <maxbytes> is the maximum number of bytes c-tree will read or write in a single system call.

Note: #define ctMAX_IO_SIZE is supported on Windows systems only and has no effect on other platforms.