none
32 Bit Limitation in Windows Software RRS feed

  • Question

  • I have 64 bit Windows 8.1 and 4GB of RAM.  I am using Visual Studio 2012 to create a C++11 program that will handle very large files (over 2 GB).

    Assuming that VS 2012 and C++11 allow 64 bit integers, is there anything in Windows to prevent the program from processing arrays over 2 GB in size when it runs?

    Friday, February 9, 2018 4:12 PM

Answers

  • Hi,
    This forum handles requests related to Open Specifications documentation issues. The Open Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx.
    Your question does not appear to be related to the Open Specifications documentation set.
    I suggest you try the following avenue to get assistance: 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home

    Thanks,
    Edgar
    Tuesday, February 13, 2018 4:26 PM
    Moderator

All replies

  • Assuming you either use memory mapped files or use the compiler that targets 64 bit Windows, then no.

    If anything, the 4GB of RAM may be a bit problematic since you will probably see some slow down due to swapping, your total array size also probably won't get much larger than your system's commit limit unless you use memory mapped files. But in general your operating system won't stop you from doing what you want to do.


    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Friday, February 9, 2018 4:21 PM
  • This question is very vague. You don't specify whether you are asking about C-style arrays or a C++ standard class such as vector. I assume you intend to use a C++ standard class. Note that articles explaining how to ask questions in forums suggest that we provide information about what we have looked at to get answers. What documentation have you looked at? If you provide links to the documentation that should have answers but the documentation is unclear then I think the experts here will be eager to help clarify things.


    Sam Hobbs
    SimpleSamples.Info

    Friday, February 9, 2018 8:20 PM
  • Hi,

    In advance, sorry if I misunderstand your question/situation.
    Do you want read/load a file (over 2 GB) into memory at once? Why don't you think read it partially (e.g. line by line)?

    Regards,

    Ashidacchi

    Saturday, February 10, 2018 5:41 AM
  • Hi,
    This forum handles requests related to Open Specifications documentation issues. The Open Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx.
    Your question does not appear to be related to the Open Specifications documentation set.
    I suggest you try the following avenue to get assistance: 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home

    Thanks,
    Edgar
    Tuesday, February 13, 2018 4:26 PM
    Moderator