This article has been archived. It is offered "as is" and will no longer be updated.
Consider the following scenario. You try to create a very large file in Microsoft Windows XP by moving the file pointer to the end of a file. Then you call the SetEndOfFile function. In this scenario, the SetEndOfFile function fails with error 1450 "ERROR_NO_SYSTEM_RESOURCES".
This problem occurs because the cache manager cannot allocate any more memory for the file caching.
To work around this problem, open the file by using the FILE_FLAG_NO_BUFFERING flag. Then try to call the SetEndOfFile function until the SetEndOfFile function succeeds.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.