I am attempting to store a lot of memory into an array of type unsigned char in Microsoft Visual C++, to be exact, I need to set up an array containing 1.6 million characters, at present I can successfully implement an array containing 1028096 values, leaving me around 580,000 characters short of my required total. Increasing the array size at the time of declaration of this array results in an instant program crash at runtime.
I would like to know if it is possible to allocate more memory to where these variables are stored, either at runtime or design time. I am sure that it is possible to do this but I cannot find the correct way to do so. I should also add that the array of 1028096 values behaves exactly as it ought to, and experiences no overflow problems.
Thanks in advance