Created On:  01 January 2011

Problem:

The large file support has been enabled by the configuration setting:

USE_LARGE_FILE_API 1

When running the program and the large file is accessed a file error 30,22 occurs.  On HP-UX error 22 means "invalid argument", which doesn't make sense.

Resolution:

The issue occurs on systems that do not support full 64-bit file addressing on some file system types (HP-UX is an example).  The problem is that by default Vision places file locks at the end of the file address space, and on those systems that address may be invalid.  The resolution is to add the follwing setting to the Runtime configuration file:

LARGE_FILE_LIMIT_2TB 1,

This forces the file access locks that Vision usually places at the end of the file address space to be placed within the 2TB boundary. 

If this does not resolve the error then the boundary for locks must be further limited.  Do that by adding:

LARGE_FILE_LIMIT_1TB 1