WriteFile() API behaving differently on 64-bit machine RRS feed

  • Question

  • I have a program which writes certain amount of data on disk using WriteFile /WriteFileEx APIs. It was working file on 32-bit machine. I tried to run the same on 64-bit machine (Windows Server 2003, Enterprise x64 Edition)  but got error code 1450 (ERROR_NO_SYSTEM_RESOURCES) on it. The API fails whenever the data is more than 32MB . The same API works fine on 32-bit but fails on 64-bit. Could you please provide the solution. Is there any different way of using the above APIs.

    Friday, September 25, 2009 1:42 PM

All replies

  • Seems like more of a Windows SDK issue than an Architecture General sort of thing.

    In any case, we'd have to see some code to help resolve this issue for you.  I don't think the API's themselves are high on the suspect list.

    Joseph w Donahue joseph@odonahue.com www.odonahue.com
    Sunday, September 27, 2009 12:24 AM