Product Documentation

c-treeACE V10.0 Release Notes

Previous Topic

Next Topic

Resolved Filter Callback Function 160 Errors

The filter callback feature provides a mechanism for a developer to apply custom filtering logic for c-tree data record reads and writes. Enhanced support was enabled that allowed c-tree calls from within this callback logic. It was possible to encounter an ITIM_ERR (160) error when using these callback filters causing them to fail.

An internal key buffer used by the record read was overwritten by a call to read a record in the filter callback function's code. (The logic that reads the record in the filter callback function is written by the application developer.) After the filter callback function returned, c-tree compares the key value formed from the record contents with the saved key buffer contents. However, the key buffer contents had been changed, resulting in the 160 error.

To avoid this, the contents of the key buffer are now saved before calling the filter callback function, and the contents of the key buffer are restored after the filter callback function returns.

TOCIndex