Re: Gnat STORAGE_ERROR



How big is your page file(s) allowed to grow?

Remember that if the stack is owned by a task,
the stack size is limited to the default task size,
unless you've specified a greater stack size with
pragma Storage_Size.
----- Original Message ----- From: <tmoran@xxxxxxx>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@xxxxxxxxxxxxxx>
Sent: May 25, 2005 1:30 PM
Subject: Re: Gnat STORAGE_ERROR



I have had success with 3.15p using

--Xlinker --stack=4000000,4000000

Doesn't seem to make any difference for me under Windows 2000. Further, according to Task Manager the program when it STORAGE_ERRORs is using 8.8MB and it's at a place where it is trying to allocate 4 MB on the stack. I would expect -Wl,--stack=0x2000000 to make about 32MB available. _______________________________________________ comp.lang.ada mailing list comp.lang.ada@xxxxxxxxxxxxxx http://www.ada-france.org/mailman/listinfo/comp.lang.ada


.



Relevant Pages

  • Re: "Heap" (was Re: static, global variable memory allocation)
    ... common to refer to the area used to allocate automatic objects ... Can a perverse but conforming implementation use the "heap" for ... used a linked list of save areas instead of a stack. ... CPU-specific region of memory that grows linearly in one direction, ...
    (comp.lang.c)
  • Re: style question,itoa
    ... able to allocate buffers in some convenient location the callee ... dynamically allocate a block of memory and computing this size to use ... call might require allocating a page for the stack. ... " Checking every single malloc in a bigger application for possible ...
    (comp.unix.programmer)
  • Re: run-time vs compile-time
    ... > offset related to some location (like stack base) somewhere. ... > offset from heap to pi. ... When you allocate an int on the heap, it is allocated at address 1. ... application has a given amount of memory it can use as it wishes. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: run-time vs compile-time
    ... > offset related to some location (like stack base) somewhere. ... > offset from heap to pi. ... When you allocate an int on the heap, it is allocated at address 1. ... application has a given amount of memory it can use as it wishes. ...
    (comp.lang.cpp)
  • Re: heap allocation of arrays
    ... to force all arrays to be allocated on the heap. ... the stack would be replaced with pointers on the stack. ... heap is easier to detect than failure to allocate space on the ...
    (comp.lang.fortran)