Re: reset memory size
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Date: Thu, 28 Oct 2004 15:01:52 +0100
"CephusŪ" <yesSir@gmail.com> wrote in message
news:2uccc7F28hhrfU1@uni-berlin.de...
> is there a way to increase the size of memory that Visual C++ uses for
> programs? I have a program whose data structures probably need a good
> size of memory to run, and when I declare the objects to the size I need
> (say a 2-d array of size [50000][200]), I get a stack overflow. But
> when I delcare them smaller (say 2-d array of size [100][200]) I don't
> get the stack overflow...can anyone help?
Allocate on the heap rather than the stack?
--
Tim Ward
Brett Ward Limited - www.brettward.co.uk
Relevant Pages
- Re: Stack consumption in NPTL
... analysis revealed that the crash is due to smaller stack size. ... NPTL will reserve 8M of virtual address space per ... Memory Allocation ... data structures and the thread-local storage are placed on the ... (comp.os.linux.development.apps) - Re: reset memory size
... Tim Ward wrote: ... >>size of memory to run, and when I declare the objects to the size I need ... > Allocate on the heap rather than the stack? ... (microsoft.public.vc.mfc) - Re: If Macs have no spyware....
... >had made a complete code review of its operating system and removed all ... and writing new data into those memory locations would ... >but when the data exists on the stack, it can cause very large problems. ... >location that needs to be written in place of the correct execution ... (comp.sys.mac.advocacy) - Re: If Macs have no spyware....
... First you yammer about being a Mac advocate, then bad mouth me for dumping XP in favor of a Mac. ... Supposedly Microsoft had made a complete code review of its operating system and removed all the buffers which could overflow. ... the fundamental problem is that the basic architecture of Windows has two fatal flaws in its memory management and while these remain in the software the ad hoc patches will never be enough to make Windows a secure operating system. ... These problems are bad enough when dealing with data in the one routine but when the data exists on the stack, it can cause very large problems. ... (comp.sys.mac.advocacy) - Re: Maybe we should stop "Paging Beth Stone" already...
... I'll want to work on my OS while running my OS, so the assembler that it's written with has to run under it. ... You have to swap CR3 if you want seperate memory spaces. ... The alternate stacks aren't used by the processor unless the task calls a different protection level, so they're not part of the TSS swap. ... This lets any application use up to a gigabyte of stack before Linux is forced to tell it that it's gone too far. ... (alt.lang.asm) |
|