fa***********@gmail.com schrieb:
I was able to solve the problem in vc++5 by changing the vc++
settings. ButI can't find the same options in vc++ 2005. I have a lot
of big arrays! "Unhandled exception at 0x0040c247 in jan7.exe:
0xC0000005: Access violation reading location 0x00030000."
Why do you think that you need more memory? The OS gives your programm all
memory when you use new or malloc().
However, the stack space is limited. If you have huge arrays that use
automatic storage, then that might be your problem.
Compiler options to increase the stack space are offtopic here and best
asked in a compiler specific newsgroup.
Instead, you can allocate your arrays on the free store where you can have
larger arrays without problems:
#include <vector>
void function()
{
std::vector<intv(1000);
// instead of: int v[1000];
}
--
Thomas
http://www.netmeister.org/news/learn2quote.html