comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: Task storage
Date: 1998/02/24
Date: 1998-02-24T00:00:00+00:00	[thread overview]
Message-ID: <34F32517.98F0E53F@elca-matrix.ch> (raw)
In-Reply-To: 34F30CB0.CD9@obs-vlfr.fr


Philippe Laval wrote:

> My Ada 95 application, compiled with Gnat 3.10 under Windows 95,
> recursively allocates large tasks (about 1_000 instructions).
> Storage_Error is raised after only a few ten tasks are created, despite
> the 40 Mbytes available on my machine. I need about 12 Kbytes of stack
> per task. The default storage pool is obviously too small. I would like
> to set up a user defined pool object, according to the chapter 13.11 of
> the ALRM, but the examples given make not very clear how Allocate could
> be overridden to reserve 12 Kbytes each time "new" is executed. Where
> can I find some examples which could be adapted to solve my problem?

You probably don't need a non-default storage pool to solve this problem. Just
put a pragma Storage_Size(12_000); in your task spec and see what happens.




  parent reply	other threads:[~1998-02-24  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-24  0:00 Task storage Philippe Laval
1998-02-24  0:00 ` Matthew Heaney
1998-02-24  0:00 ` Mats Weber [this message]
1998-02-25  0:00 ` Jonas Nygren
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox