I have a large file to read. When I tried to use a 10mb char buffer, I got a stack overflow.
const size_t buffsize = 1024 * 1024 * 10; // 10mb
char buff[buffsize];
Exception thrown at 0x00007FF7FF42D3F7 in ConsoleApplicationTest.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000E352D03000).
Unhandled exception at 0x00007FF7FF42D3F7 in ConsoleApplicationTest.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000E352D03000).
On C#, I used to use over 100mb buffer. So I also tried it on c++ but not worked. There is something I don't know. Please let me know. Thank you.