Re: reset memory size

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: CephusŪ (yesSir_at_gmail.com)
Date: 10/28/04


Date: Thu, 28 Oct 2004 10:20:58 -0500

Tim Ward wrote:
> "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
>
>

can you eloborate on how to do that?

thanks



Relevant Pages

  • Re: Difference between the stack and the heap?
    ... If you just declare a variable or array like this: ... the system uses a stack. ... char * pc = malloc; ... then the memory is allocated on the heap, ...
    (comp.lang.c)
  • Re: SDCC and internal RAM layout for 8051
    ... Now, if I declare one more global char variable, I get this dreaded ... The stack can use iData, but Data variables cannot extend past ... The directly addressable Data memory ends at 0x7F. ... You can make the stack start where you like (in Data or iData), but SDCC should place it automatically, see below. ...
    (comp.arch.embedded)
  • Re: ReadFile() fails on hardware RAID disk.How to detect that disk
    ... It's a common mistake to declare handle in stack, ... and checked the pointer as well as memory in memory watch....nothing was ...
    (microsoft.public.win32.programmer.kernel)
  • Re: reset memory size
    ... 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 ... Allocate on the heap rather than the stack? ... Tim Ward ...
    (microsoft.public.vc.mfc)
  • Re: Memory Analysis confuse me
    ... memory size are growing to 100MB. ... If I declare a huge parameter in the stack, but do not initialze, ...
    (comp.os.linux.misc)