title: max size of char array?
body: <p>Is there a max limit to the number of bytes you can allocate to an array pointer?</p>
  
  <p>For example if i use a size of 16000 then this works.</p>
  
  <pre><code>char* iobuffer=new char(16000);
  iobuffer[15000]='a';
  </code></pre>
  
  <p>However</p>
  
  <pre><code>char* iobuffer=new char(160000);
  iobuffer[150000]='a';
  </code></pre>
  
  <p>this does not.</p>
  
  <p>It shouldn't be a memory issue so is there some internal restriction?  After looking further it might be that the heap cannot store that much.</p>