This is because its too big for the stack. You could allocate it with new and put it on the heap instead. Or you could increase the size of your stack in the linker options.
Thanks Dave and Jeff, as u have said the problem is size of the structure is beyond the stack size.
How can i increase the stack size?
Can u give me some online tutorial on this.
Originally posted by Varadha
Thanks Dave and Jeff, as u have said the problem is size of the structure is beyond the stack size.
How can i increase the stack size?
Can u give me some online tutorial on this.
MSDN "Visual C++ Linker Options":
The /STACK option sets the size of the stack in bytes. This option is only for use when building an .exe file.
That said, usually when one thinks they need to increase the stack size, it is because they are abusing the stack (char c[1062144];). Rethink your design.
Thought for the day/week/month/year: Windows System Error 4006:
Replication with a nonconfigured partner is not allowed.
Originally posted by Varadha
Thanks Dave and Jeff, as u have said the problem is size of the structure is beyond the stack size.
How can i increase the stack size?
Can u give me some online tutorial on this.
However, as the others also pointed out, you seem to be abusing the stack here, and should rather allocate that amount of memory on the heap instead of increasing the stack size. Besides that, what is the use of a structure that amount of memory as a static character array? You should rather rethink your design (or explain why you need to do this).
Last edited by gstercken; November 7th, 2003 at 08:39 AM.
Originally posted by vicodin451
I'm ignorant. Can you explain how that pertains to this?
No you don't...but I am stupid...forget about it, I was thinking about something different wile writing this...sorry about this...I already have deleted my nonsense...
Ciao, Andreas
"Software is like sex, it's better when it's free." - Linus Torvalds
Bookmarks