Re: stack overflow
- From: Mike <SulfateIon@xxxxxxxxx>
- Date: Mon, 08 Oct 2007 00:05:43 -0700
On Oct 8, 2:10 pm, Tim Prince <timothypri...@xxxxxxxxxxxxx> wrote:
Mike wrote:
I set /stack:0xFFFFFFFF, which is the maximum value.
However, the compiled results still show "warning LNK4084: total image
size 1126330368 exceeds max (268435456); image may not run".
If I run it, "stack overflow" will be shown.
I use CVF6.6c in Windows XP.
Your warning about total image size is only a reminder that things would
be worse in Windows 98. If your application actually is that large, it
could be a problem in XP-SP2.
I use XP-SP2.
The /stack option must be preceded by /link, or it will have no effect.
No. I've added /link before /stack:0xFFFFFFFF, but CVF didn't
recognize "link".
I have doubts about assigning your entire virtual space to stack.
Conceivably, the /3GB boot switch could help, if you haven't tried it,
along with setting a larger than default stack.
I've also tried /stack:1126330368, which will be changed into /stack:
0x43227000. And the same error message is shown.
I also use cygwin to compile the program.
In compling, there is no warning message.
But after running, it shows that memory is not enough.
Mike
.
- Follow-Ups:
- Re: stack overflow
- From: Steve Lionel
- Re: stack overflow
- References:
- stack overflow
- From: Mike
- Re: stack overflow
- From: Tim Prince
- stack overflow
- Prev by Date: Re: stack overflow
- Next by Date: Re: Most elegant syntax for inverting a permutation?
- Previous by thread: Re: stack overflow
- Next by thread: Re: stack overflow
- Index(es):
Relevant Pages
|